diff --git a/entities/webservice.js b/entities/webservice.js index 5fb8dcf..7d6ac99 100644 --- a/entities/webservice.js +++ b/entities/webservice.js @@ -224,7 +224,7 @@ module.exports = { default: () => makeId(6), validate: async ({ newValues, oldValues, newEntity, storage }) => { if (newEntity) { - const r = storage ? await storage.store('webdesq/blog').get(newValues.id) : null; + const r = storage ? await storage.store('smartyellow/webservice').get(newValues.id) : null; return (r == null ? true : 'id already exists'); } else { @@ -238,6 +238,7 @@ module.exports = { type: 'stringset', trim: true, required: [ true, 'Name is missing!' ], + default: '', filter: { title: 'title', match: '^[a-zA-Z0-9]*', diff --git a/entities/webserviceheartbeat.js b/entities/webserviceheartbeat.js index 3430cde..06a7e22 100644 --- a/entities/webserviceheartbeat.js +++ b/entities/webserviceheartbeat.js @@ -23,7 +23,7 @@ module.exports = { default: () => makeId(6), validate: async ({ newValues, oldValues, newEntity, storage }) => { if (newEntity) { - const r = storage ? await storage.store('webdesq/blog').get(newValues.id) : null; + const r = storage ? await storage.store('smartyellow/webserviceheartbeat').get(newValues.id) : null; return (r == null ? true : 'id already exists'); } else { diff --git a/entities/webserviceoutage.js b/entities/webserviceoutage.js index 8be6d7f..f6a9222 100644 --- a/entities/webserviceoutage.js +++ b/entities/webserviceoutage.js @@ -204,7 +204,7 @@ module.exports = { default: () => makeId(6), validate: async ({ newValues, oldValues, newEntity, storage }) => { if (newEntity) { - const r = storage ? await storage.store('webdesq/blog').get(newValues.id) : null; + const r = storage ? await storage.store('smartyellow/webserviceoutage').get(newValues.id) : null; return (r == null ? true : 'id already exists'); } else {