bug fixed
This commit is contained in:
parent
03639adc22
commit
4189062c4c
|
@ -57,8 +57,8 @@ export default async function deleteCollection(
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
await removeFolder({ filePath: `archives/${collectionId}` });
|
removeFolder({ filePath: `archives/${collectionId}` });
|
||||||
await removeFolder({ filePath: `archives/preview/${collectionId}` });
|
removeFolder({ filePath: `archives/preview/${collectionId}` });
|
||||||
|
|
||||||
await removeFromOrders(userId, collectionId);
|
await removeFromOrders(userId, collectionId);
|
||||||
|
|
||||||
|
@ -100,8 +100,8 @@ async function deleteSubCollections(collectionId: number) {
|
||||||
where: { id: subCollection.id },
|
where: { id: subCollection.id },
|
||||||
});
|
});
|
||||||
|
|
||||||
await removeFolder({ filePath: `archives/${subCollection.id}` });
|
removeFolder({ filePath: `archives/${subCollection.id}` });
|
||||||
await removeFolder({ filePath: `archives/preview/${subCollection.id}` });
|
removeFolder({ filePath: `archives/preview/${subCollection.id}` });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue