Skip to content

Commit

Permalink
ci: fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Mar 28, 2024
1 parent 39ba5da commit b11071d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@sentry/types": "^7.108.0",
"@types/lodash": "^4.17.0",
"@types/multicoin-address-validator": "^0.5.2",
"@types/node": "^20.11.17",
Expand Down
8 changes: 0 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions src/plugins/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@ import fp from 'fastify-plugin';
import * as Sentry from '@sentry/node';
import TransactionManager from '../services/transaction';
import cron from 'fastify-cron';
import { MonitorConfig } from '@sentry/types';
import { Env } from '../env';

export default fp(async (fastify) => {
try {
const env: Env = fastify.container.resolve('env');
const cronMonitorConfig: MonitorConfig = {
schedule: {
type: 'crontab',
value: env.UNLOCKER_CRON_SCHEDULE,
},
};

// processing rgb++ ckb transaction
const transactionManager: TransactionManager = fastify.container.resolve('transactionManager');
Expand Down Expand Up @@ -45,7 +38,12 @@ export default fp(async (fastify) => {
monitorSlug,
status: 'in_progress',
},
cronMonitorConfig,
{
schedule: {
type: 'crontab',
value: env.UNLOCKER_CRON_SCHEDULE,
},
},
);
try {
await unlocker.unlockCells();
Expand Down

0 comments on commit b11071d

Please sign in to comment.