feat: Track storage usage

This commit is contained in:
Maksim Eltyshev
2025-08-23 00:03:20 +02:00
parent 2f4bcb0583
commit 4d77a1f596
89 changed files with 1052 additions and 304 deletions

View File

@@ -29,11 +29,11 @@ module.exports = {
projectId: projectIdOrIds,
});
const backgroundImages = await BackgroundImage.qm.delete({
const { uploadedFiles } = await BackgroundImage.qm.delete({
projectId: projectIdOrIds,
});
sails.helpers.backgroundImages.removeRelatedFiles(backgroundImages);
sails.helpers.utils.removeUnreferencedUploadedFiles(uploadedFiles);
const baseCustomFieldGroups = await BaseCustomFieldGroup.qm.delete({
projectId: projectIdOrIds,