fix(Journals): sync posting datetime with jorunal entries.

This commit is contained in:
a.bouhuolia
2021-03-29 10:50:44 +02:00
parent 40b2ba099e
commit 9a204282a2
38 changed files with 477 additions and 302 deletions

View File

@@ -21,6 +21,9 @@ export default class WriteInvoicesJournalEntries {
agenda.on(`complete:${eventName}`, this.onJobCompleted.bind(this));
}
/**
* Handle the job execuation.
*/
public async handler(job, done: Function): Promise<void> {
const Logger = Container.get('logger');
const { startingDate, tenantId } = job.attrs.data;