mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 11:52:44 +00:00
Merge pull request #1542 from G-Ambatte/fixGoogleModifiedTime-#1506
Set modifiedTime during view count update of Google brews
This commit is contained in:
@@ -369,8 +369,13 @@ GoogleActions = {
|
|||||||
|
|
||||||
await drive.files.update({
|
await drive.files.update({
|
||||||
fileId : brew.googleId,
|
fileId : brew.googleId,
|
||||||
resource : { properties : { views : brew.views + 1,
|
resource : {
|
||||||
lastViewed : new Date() } }
|
modifiedTime : brew.updatedAt,
|
||||||
|
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