0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 19:32:42 +00:00

Update listGoogleBrews to ensure pageCount and views are integers

This commit is contained in:
G.Ambatte
2021-11-03 21:39:20 +13:00
parent dcb99fff80
commit 2948a9ffc3

View File

@@ -120,10 +120,10 @@ GoogleActions = {
updatedAt : file.modifiedTime, updatedAt : file.modifiedTime,
gDrive : true, gDrive : true,
googleId : file.id, googleId : file.id,
pageCount : file.properties.pageCount, pageCount : parseInt(file.properties.pageCount),
title : file.properties.title, title : file.properties.title,
description : file.description, description : file.description,
views : file.properties.views, views : parseInt(file.properties.views),
tags : '', tags : '',
published : file.properties.published ? file.properties.published == 'true' : false, published : file.properties.published ? file.properties.published == 'true' : false,
authors : [req.account.username], //TODO: properly save and load authors to google drive authors : [req.account.username], //TODO: properly save and load authors to google drive