slot: disable beforeUpdate if no time_start & time_end
This commit is contained in:
parent
f434f0e208
commit
5e54c3f7e3
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user