slot: disable beforeUpdate if no time_start & time_end

This commit is contained in:
vchikalkin 2025-05-21 12:24:27 +03:00
parent f434f0e208
commit 5e54c3f7e3

View File

@ -38,6 +38,7 @@ export default {
const { id: entityId } = where;
const { time_start, time_end } = data;
if (time_start && time_end) {
if (!time_start || !time_end) {
throw new Error(ERR_INVALID_TIME);
}
@ -72,5 +73,7 @@ export default {
if (overlappingEntities.length > 0) {
throw new Error(ERR_OVERLAPPING_TIME);
}
}
},
};