mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 12:14:54 +00:00
no need to do anything if delete dto is empty
This commit is contained in:
@ -137,7 +137,7 @@ export class SubSpaceModelService {
|
|||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
if (!deleteDtos || deleteDtos.length === 0) {
|
if (!deleteDtos || deleteDtos.length === 0) {
|
||||||
throw new Error('No subspaces provided for deletion.');
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const deleteResults = [];
|
const deleteResults = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user