0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +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

View File

@@ -369,8 +369,13 @@ GoogleActions = {
await drive.files.update({
fileId : brew.googleId,
resource : { properties : { views : brew.views + 1,
lastViewed : new Date() } }
resource : {
modifiedTime : brew.updatedAt,
properties : {
views : brew.views + 1,
lastViewed : new Date()
}
}
})
.catch((err)=>{
console.log('Error updating Google views');