Skip to content

Commit

Permalink
feat: update frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
ipeleg committed Mar 14, 2024
1 parent f3c45f2 commit d3c7c87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/jobs/element-sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (config.doRealtimeWork) {
}
});

cron.schedule("*/15 * * * * *", async () => {
cron.schedule("*/10 * * * * *", async () => {
if (new Element().getChainName()) {
const lockAcquired = await acquireLock(
"element-sync-offers-lock",
Expand Down
12 changes: 6 additions & 6 deletions src/utils/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export enum SaleKind {
export class Element {
public getChainName() {
switch (config.chainId) {
// case 1:
// return "eth";
case 1:
return "eth";
case 10:
return "optimism";
case 56:
Expand All @@ -72,14 +72,14 @@ export class Element {
// return "base";
case 42161:
return "arbitrum";
case 43114:
return "avalanche";
// case 43114:
// return "avalanche";
case 59144:
return "linea";
case 81457:
return "blast";
case 534352:
return "scroll";
// case 534352:
// return "scroll";
default:
return undefined;
}
Expand Down

0 comments on commit d3c7c87

Please sign in to comment.