Skip to content

Commit

Permalink
Merge pull request #5 from giogaspa/fix/error-on-updating-completed
Browse files Browse the repository at this point in the history
fix: fixed error on updatingCompleted
  • Loading branch information
raiindev authored Sep 23, 2024
2 parents de35abb + f207ab6 commit d87e20d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/services/orama-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class OramaManager {
async updatingCompleted(collection, documents_count) {
return await this.collectionService.updateWithoutHooks(collection.id, {
status: 'updated',
deployed_at: new Date().getTime(),
deployed_at: new Date(),
...(documents_count && { documents_count })
})
}
Expand Down
2 changes: 1 addition & 1 deletion server/services/orama-manager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('OramaManager', () => {

expect(collectionService.updateWithoutHooks).toHaveBeenCalledWith(mockCollection.id, {
status: 'updated',
deployed_at: expect.any(Number),
deployed_at: expect.any(Date),
documents_count: 1
})
})
Expand Down

0 comments on commit d87e20d

Please sign in to comment.