mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: remove Webpack and depend on nodemon. feat: refactoring expenses. feat: optimize system users with caching. feat: architecture tenant optimize.
12 lines
301 B
TypeScript
12 lines
301 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,
|
|
});
|
|
};
|