Skip to content

Commit

Permalink
feat: register syncUTXOCronRoute and collectRgbppCellsCronRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed May 15, 2024
1 parent c3d6360 commit bb22bc8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/routes/cron/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { FastifyPluginCallback } from "fastify";
import { ZodTypeProvider } from "fastify-type-provider-zod";
import { Server } from "http";
import processTransactionsCronRoute from "./process-transactions";
import unlockCellsCronRoute from "./unlock-cells";
import { FastifyPluginCallback } from 'fastify';
import { ZodTypeProvider } from 'fastify-type-provider-zod';
import { Server } from 'http';
import processTransactionsCronRoute from './process-transactions';
import unlockCellsCronRoute from './unlock-cells';
import syncUTXOCronRoute from './sync-utxo';
import collectRgbppCellsCronRoute from './collect-rgbpp-cells';

const cronRoutes: FastifyPluginCallback<Record<never, never>, Server, ZodTypeProvider> = (fastify, _, done) => {
fastify.register(processTransactionsCronRoute);
fastify.register(unlockCellsCronRoute);
fastify.register(syncUTXOCronRoute);
fastify.register(collectRgbppCellsCronRoute);
done();
};

Expand Down

0 comments on commit bb22bc8

Please sign in to comment.