mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 05:27:58 +00:00
Fix incorrect entity names
Signed-off-by: Romein van Buren <romein@vburen.nl>
This commit is contained in:
parent
1983f78fba
commit
141d7009f6
@ -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]*',
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user