Various fixes

This commit is contained in:
2022-07-13 13:42:37 +02:00
parent 0aa3ce6e2a
commit 7f1d1dc90e
7 changed files with 28 additions and 18 deletions

View File

@ -17,10 +17,10 @@ module.exports = {
trim: true,
filter: {
title: 'id',
match: '^[a-zA-Z0-9]{6}$',
match: '^[a-zA-Z0-9]{10}$',
order: 999,
},
default: () => makeId(6),
default: () => makeId(10),
validate: async ({ newValues, oldValues, newEntity, storage }) => {
if (newEntity) {
const r = storage ? await storage.store('smartyellow/webserviceheartbeat').get(newValues.id) : null;