mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 18:52:38 +00:00
Add modifiedTime to properties to apply during view count increase update.
This commit is contained in:
@@ -358,8 +358,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');
|
||||||
|
|||||||
Reference in New Issue
Block a user