File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import ExpressErrorResponse from 'middlewares/ExpressErrorResponse'
13
13
import ExpressErrorSequelize from 'middlewares/ExpressErrorSequelize'
14
14
import ExpressAutoHandleTransaction from 'middlewares/ExpressAutoHandleTransaction'
15
15
import winstonLogger , { winstonStream } from 'config/winston'
16
+ import initialJobs from 'jobs'
16
17
17
18
const GenerateDoc = require ( 'utils/GenerateDocs' )
18
19
@@ -41,6 +42,9 @@ GenerateDoc(app)
41
42
// Initial Route
42
43
app . use ( indexRouter )
43
44
45
+ // Initial Jobs
46
+ initialJobs ( )
47
+
44
48
async function handleRollbackTransaction (
45
49
err : any ,
46
50
req : Request ,
Original file line number Diff line number Diff line change
1
+ import { GetRoleTask } from 'jobs/RoleJob'
2
+
3
+ function initialJobs ( ) {
4
+ // Role Jobs
5
+ GetRoleTask . start ( )
6
+ }
7
+
8
+ export default initialJobs
You can’t perform that action at this time.
0 commit comments