web: fixed vaa timestamp col (#26)
* web: fixed vaa timestamp col * Server: replaced createdAt with IndexedAt
This commit is contained in:
parent
3f09b66f59
commit
b4e5db80d8
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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(),
|
||||
}),
|
||||
|
|
|
@ -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(),
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue