From cb8c3a016ab37112a45ef9df399f009e72057509 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 18 Aug 2021 16:25:08 +1200 Subject: [PATCH] BETTER property alignment in `googleActions` --- server/googleActions.js | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/server/googleActions.js b/server/googleActions.js index 2594344d8..04cda42a9 100644 --- a/server/googleActions.js +++ b/server/googleActions.js @@ -109,24 +109,23 @@ GoogleActions = { const brews = obj.data.files.map((file)=>{ return { - text : '', - shareId : file.properties.shareId, - editId : file.properties.editId, - createdAt : file.createdTime, - updatedAt : file.modifiedTime, - gDrive : true, - googleId : file.id, - pageCount : file.properties.pageCount, - title : file.properties.title, - description : file.description, - views : file.properties.views, - tags : '', - published : file.properties.published ? file.properties.published == 'true' : false, - authors : [req.account.username], //TODO: properly save and load authors to google drive - systems : [] - }; - }); - + text : '', + shareId : file.properties.shareId, + editId : file.properties.editId, + createdAt : file.createdTime, + updatedAt : file.modifiedTime, + gDrive : true, + googleId : file.id, + pageCount : file.properties.pageCount, + title : file.properties.title, + description : file.description, + views : file.properties.views, + tags : '', + published : file.properties.published ? file.properties.published == 'true' : false, + authors : [req.account.username], //TODO: properly save and load authors to google drive + systems : [] + }; + }); return brews; },