Fix job model
authorChocobozzz <me@florianbigard.com>
Wed, 13 Dec 2017 16:00:01 +0000 (17:00 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 13 Dec 2017 16:00:01 +0000 (17:00 +0100)
server/models/job/job.ts

index 35c357e69e95df3064827dc406f1306c1983996a..637d4f16c26930842c7e46dca8e435cb524b39a2 100644 (file)
@@ -30,10 +30,10 @@ export class JobModel extends Model<JobModel> {
   handlerInputData: any
 
   @CreatedAt
-  creationDate: Date
+  createdAt: Date
 
   @UpdatedAt
-  updatedOn: Date
+  updatedAt: Date
 
   static listWithLimitByCategory (limit: number, state: JobState, jobCategory: JobCategory) {
     const query = {