mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
add server to monorepo.
This commit is contained in:
11
packages/server/src/loaders/agenda.ts
Normal file
11
packages/server/src/loaders/agenda.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user