Fix incorrect entity names

Signed-off-by: Romein van Buren <romein@vburen.nl>
This commit is contained in:
Romein van Buren 2022-07-03 10:16:52 +02:00
parent 1983f78fba
commit 141d7009f6
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49
3 changed files with 4 additions and 3 deletions

View File

@ -224,7 +224,7 @@ module.exports = {
default: () => makeId(6), default: () => makeId(6),
validate: async ({ newValues, oldValues, newEntity, storage }) => { validate: async ({ newValues, oldValues, newEntity, storage }) => {
if (newEntity) { 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'); return (r == null ? true : 'id already exists');
} }
else { else {
@ -238,6 +238,7 @@ module.exports = {
type: 'stringset', type: 'stringset',
trim: true, trim: true,
required: [ true, 'Name is missing!' ], required: [ true, 'Name is missing!' ],
default: '',
filter: { filter: {
title: 'title', title: 'title',
match: '^[a-zA-Z0-9]*', match: '^[a-zA-Z0-9]*',

View File

@ -23,7 +23,7 @@ module.exports = {
default: () => makeId(6), default: () => makeId(6),
validate: async ({ newValues, oldValues, newEntity, storage }) => { validate: async ({ newValues, oldValues, newEntity, storage }) => {
if (newEntity) { 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'); return (r == null ? true : 'id already exists');
} }
else { else {

View File

@ -204,7 +204,7 @@ module.exports = {
default: () => makeId(6), default: () => makeId(6),
validate: async ({ newValues, oldValues, newEntity, storage }) => { validate: async ({ newValues, oldValues, newEntity, storage }) => {
if (newEntity) { 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'); return (r == null ? true : 'id already exists');
} }
else { else {