fix: Add await
@@ -56,7 +56,7 @@ class ThreadDeletionCronService {
try {
// Random fractional sleep to distribute request timing among GROWI apps
const randomMilliseconds = getRandomIntInRange(0, this.threadDeletionCronMaxMinutesUntilRequest) * 60 * 1000;
- this.sleep(randomMilliseconds);
+ await this.sleep(randomMilliseconds);
await this.executeJob();
}
@@ -56,7 +56,7 @@ class VectorStoreFileDeletionCronService {
const randomMilliseconds = getRandomIntInRange(0, this.vectorStoreFileDeletionCronMaxMinutesUntilRequest) * 60 * 1000;