Skip to content

Commit

Permalink
update timeout 1hour
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed Jul 29, 2024
1 parent 8db1f46 commit d2e1a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/plugins/cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default fp(async (fastify) => {
const oneDayAgo = now - 24 * 60 * 60;
// const oneDayAgo = 1719701000;
const halfHourAgo = now - 30 * 60;
const towHoursAgo = now - 60 * 60 * 2;
const oneHourAgo = now - 60 * 60 * 1;
const query = `query MessageList($timestampGt: numeric!, $timestampLt: numeric!) {
MessagePort(order_by: {sourceBlockTimestamp: desc},
where: {
Expand Down Expand Up @@ -255,7 +255,7 @@ export default fp(async (fastify) => {
query: query,
variables: {
timestampGt: oneDayAgo,
timestampLt: towHoursAgo
timestampLt: oneHourAgo
}
});
const data = result.data.data.MessagePort;
Expand Down

0 comments on commit d2e1a2c

Please sign in to comment.