Skip to content

Commit

Permalink
fix: add _createdAt
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed May 27, 2024
1 parent 31c70b4 commit a2ea383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/server/models/raw/IntegrationHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class IntegrationHistoryRaw extends BaseRaw<IIntegrationHistory> implemen
}

async create(integrationHistory: IIntegrationHistory): Promise<InsertOneResult<IIntegrationHistory>> {
return this.insertOne(integrationHistory);
return this.insertOne({ ...integrationHistory, _createdAt: new Date() });
}

async updateById(
Expand Down

0 comments on commit a2ea383

Please sign in to comment.