Skip to content

Commit

Permalink
Proper export function
Browse files Browse the repository at this point in the history
  • Loading branch information
doitwithnotepad committed Aug 14, 2024
1 parent 308821b commit 28360d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jobs/check_solvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { logger } from '../logger';

const MESSAGES: number = parseInt(process.env.COMMUNITY_MESSAGES || '5');

exports.checkSolvers = async (ctx: MainContext, bot: Telegraf<MainContext>): Promise<void> => {
const checkSolvers = async (ctx: MainContext, bot: Telegraf<MainContext>): Promise<void> => {
try {
const communities = await Community.find({ isDisabled: false });

Expand Down Expand Up @@ -35,3 +35,5 @@ exports.checkSolvers = async (ctx: MainContext, bot: Telegraf<MainContext>): Pro
logger.error(error);
}
};

module.exports = { checkSolvers };

0 comments on commit 28360d2

Please sign in to comment.