0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-26 08:38:40 +00:00

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

This commit is contained in:
G.Ambatte
2021-08-10 21:35:27 +12:00
parent 479f9af08c
commit 72b18e4266
+2 -1
View File
@@ -358,7 +358,8 @@ GoogleActions = {
await drive.files.update({ await drive.files.update({
fileId : brew.googleId, fileId : brew.googleId,
resource : { properties : { views : brew.views + 1, resource : { modifiedTime : brew.updatedAt,
properties : { views : brew.views + 1,
lastViewed : new Date() } } lastViewed : new Date() } }
}) })
.catch((err)=>{ .catch((err)=>{