cher-db
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -69,3 +69,4 @@ | ||
type: model.type, | ||
tags: serializeTags( model.tags ) | ||
tags: serializeTags(model.tags), | ||
moderation: utils.moderationLabel(model.moderation) | ||
}; | ||
@@ -72,0 +73,0 @@ }); |
@@ -19,3 +19,13 @@ | ||
} | ||
}, | ||
moderationLabel: (moderation) => { | ||
if (moderation === true) { | ||
return 'approved'; | ||
} else if (moderation === false) { | ||
return 'denied'; | ||
} else { | ||
return 'unmoderated'; | ||
} | ||
} | ||
}; |
{ | ||
"name": "cher-db", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Data layer for Cher", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
38475
1194