mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 13:37:59 +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),
|
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]*',
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user