mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update integration syncedAt if successful
This commit is contained in:
parent
bd73da0571
commit
8e9d1fcc4f
1 changed files with 3 additions and 3 deletions
|
|
@ -99,11 +99,11 @@ export const syncWithIntegration = async (
|
|||
default:
|
||||
return false
|
||||
}
|
||||
// update integration updatedAt if successful
|
||||
// update integration syncedAt if successful
|
||||
if (result) {
|
||||
console.log('updating integration updatedAt')
|
||||
console.log('updating integration syncedAt')
|
||||
await getRepository(Integration).update(integration.id, {
|
||||
updatedAt: new Date(),
|
||||
syncedAt: new Date(),
|
||||
})
|
||||
}
|
||||
return result
|
||||
|
|
|
|||
Loading…
Reference in a new issue