This commit is contained in:
Gabor Kotel 2020-08-07 17:57:51 -04:00 committed by GitHub
commit 6c484ab3cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,9 @@ module.exports.create = (template, callback) => {
Object.keys(template).forEach(key => {
let value = template[key];
if(value === null) {
value = '';
}
key = tools.toDbKey(key);
if (!allowedKeys.includes(key)) {
return;