Skip to content

Commit

Permalink
feat: Add OAuth client last synced datetime update
Browse files Browse the repository at this point in the history
  • Loading branch information
taratatach committed Jun 20, 2023
1 parent 445e673 commit 78f03c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cozy-stack-client/src/SettingsCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ class SettingsCollection extends DocumentCollection {
data: normalizeDoc(resp.data, this.doctype)
}
}

/**
* Updates the current OAuth client's last synchronization date
*/
async updateLastSynced() {
return this.stackClient.fetchJSON('POST', '/settings/synchronized')
}
}

SettingsCollection.normalizeDoctype = DocumentCollection.normalizeDoctypeJsonApi
Expand Down

0 comments on commit 78f03c8

Please sign in to comment.