Clear upload folder on startup

This commit is contained in:
arc-alex
2024-05-27 18:08:48 +02:00
committed by Carlos Valente
parent be852f4546
commit 4beac19c4a
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -17,6 +17,7 @@ import {
resolveExternalsDirectory,
resolveStylesDirectory,
resolvedPath,
clearUploadfolder,
} from './setup/index.js';
import { ONTIME_VERSION } from './ONTIME_VERSION.js';
@@ -143,6 +144,7 @@ const checkStart = (currentState: OntimeStartOrder) => {
export const initAssets = async () => {
checkStart(OntimeStartOrder.InitAssets);
await dbLoadingProcess;
await clearUploadfolder();
populateStyles();
populateDemo();
};