0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-24 06:48:39 +00:00
Set modifiedTime during view count update of Google brews
This commit is contained in:
Trevor Buckner
2021-08-24 23:55:57 -04:00
committed by GitHub
+7 -2
View File
@@ -369,8 +369,13 @@ GoogleActions = {
await drive.files.update({ await drive.files.update({
fileId : brew.googleId, fileId : brew.googleId,
resource : { properties : { views : brew.views + 1, resource : {
lastViewed : new Date() } } modifiedTime : brew.updatedAt,
properties : {
views : brew.views + 1,
lastViewed : new Date()
}
}
}) })
.catch((err)=>{ .catch((err)=>{
console.log('Error updating Google views'); console.log('Error updating Google views');