0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

Push pageCount to NewPage and EditPage

This commit is contained in:
G.Ambatte
2021-08-17 17:36:26 +12:00
parent 0fd7921a50
commit cfb98986cd
4 changed files with 17 additions and 14 deletions

View File

@@ -162,7 +162,7 @@ GoogleActions = {
renderer : brew.renderer,
tags : brew.tags,
systems : brew.systems.join(),
pageCount : (brew.text.match(/\\page/g) || []).length + 1
pageCount : brew.pageCount
}
},
media : { mimeType : 'text/plain',
@@ -198,7 +198,7 @@ GoogleActions = {
'editId' : nanoid(12),
'title' : brew.title,
'views' : '0',
'pageCount' : (brew.text.match(/\\page/g) || []).length + 1,
'pageCount' : brew.pageCount,
'renderer' : brew.renderer || 'legacy'
}
};
@@ -234,7 +234,7 @@ GoogleActions = {
updatedAt : new Date(),
gDrive : true,
googleId : obj.data.id,
pageCount : fileMetadata.properties.pageCount || 1,
pageCount : fileMetadata.properties.pageCount,
title : brew.title,
description : brew.description,