0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 15:12:43 +00:00

Set modifiedTime during view count update

This commit is contained in:
G.Ambatte
2021-08-10 21:43:41 +12:00
parent 3cf5dc74bb
commit 779426dbb1

View File

@@ -359,8 +359,9 @@ 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,
lastViewed : new Date() } } properties : { views : brew.views + 1,
lastViewed : new Date() } }
}) })
.catch((err)=>{ .catch((err)=>{
console.log('Error updating Google views'); console.log('Error updating Google views');