mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-18 18:42:41 +00:00
remove tags from google brew fetch
This commit is contained in:
@@ -249,7 +249,6 @@ const GoogleActions = {
|
|||||||
text : file.data,
|
text : file.data,
|
||||||
|
|
||||||
description : obj.data.description,
|
description : obj.data.description,
|
||||||
tags : obj.data.properties.tags ? obj.data.properties.tags : '',
|
|
||||||
systems : obj.data.properties.systems ? obj.data.properties.systems.split(',') : [],
|
systems : obj.data.properties.systems ? obj.data.properties.systems.split(',') : [],
|
||||||
authors : [],
|
authors : [],
|
||||||
published : obj.data.properties.published ? obj.data.properties.published == 'true' : false,
|
published : obj.data.properties.published ? obj.data.properties.published == 'true' : false,
|
||||||
|
|||||||
@@ -234,10 +234,6 @@ const updateBrew = async (req, res)=>{
|
|||||||
if(req.account) {
|
if(req.account) {
|
||||||
brew.authors = _.uniq(_.concat(brew.authors, req.account.username));
|
brew.authors = _.uniq(_.concat(brew.authors, req.account.username));
|
||||||
}
|
}
|
||||||
// we need the tag type change in both getBrew and here to handle the case where we don't have a stub on which to perform the modification
|
|
||||||
if(typeof brew.tags === 'string') {
|
|
||||||
brew.tags = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
// define a function to catch our save errors
|
// define a function to catch our save errors
|
||||||
const saveError = (err)=>{
|
const saveError = (err)=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user