mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
12 lines
303 B
TypeScript
12 lines
303 B
TypeScript
import Agenda from 'agenda';
|
|
import config from '@/config';
|
|
|
|
export default ({ mongoConnection }) => {
|
|
return new Agenda({
|
|
mongo: mongoConnection,
|
|
db: { collection: config.agenda.dbCollection },
|
|
processEvery: config.agenda.pooltime,
|
|
maxConcurrency: config.agenda.concurrency,
|
|
});
|
|
};
|