web: fixed vaa timestamp col (#26)

* web: fixed vaa timestamp col

* Server: replaced createdAt with IndexedAt
This commit is contained in:
ckeun 2022-11-10 07:46:02 -06:00 committed by GitHub
parent 3f09b66f59
commit b4e5db80d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@ async function paginatedFind(collection, req, filter) {
req.query?.limit && req.query.limit <= 100 ? req.query.limit : 20;
const skip = req.query?.page ? req.query?.page * limit : undefined;
const query = req.query?.before
? { ...filter, createdAt: { $lt: new Date(req.query.before) } }
? { ...filter, indexedAt: { $lt: new Date(req.query.before) } }
: filter;
const cursor = await collection.find(query, {
sort: { createdAt: -1 },
sort: { indexedAt: -1 },
skip,
limit,
});

View File

@ -54,7 +54,7 @@ const columns = [
header: () => "Sequence",
cell: (info) => info.getValue().split("/")[2],
}),
columnHelper.accessor("createdAt", {
columnHelper.accessor("updatedAt", {
header: () => "Observed At",
cell: (info) => new Date(info.getValue()).toLocaleString(),
}),

View File

@ -56,7 +56,7 @@ const columns = [
header: () => "Sequence",
cell: (info) => info.getValue().split("/")[2],
}),
columnHelper.accessor("createdAt", {
columnHelper.accessor("updatedAt", {
header: () => "Observed At",
cell: (info) => new Date(info.getValue()).toLocaleString(),
}),