Add modifiedTime to properties to apply during view count increase update.

This commit is contained in:
G.Ambatte committed 2021-08-10 21:35:27 +12:00
1 parent 479f9af08c
commit 72b18e4266
1 file changed
+3 -2
+3 -2
View File
@@ -358,8 +358,9 @@ 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');