fix: rewrite temp files with PutObject instead of SeaweedFS CopyObject

CopyObject returns InternalError 500 across buckets, so commits now Get+Put and ensure the documents bucket exists on startup.
This commit is contained in:
2026-08-15 03:33:55 +03:30
parent 877dfa65d5
commit 23edffba6a
3 changed files with 117 additions and 22 deletions
+3
View File
@@ -115,6 +115,9 @@ const startServer = async () => {
await seedDatabase({ disconnectOnComplete: false });
}
const { ensureAppBuckets } = require('./utils/s3Client');
await ensureAppBuckets();
const registerEventListeners = require('./events/eventListeners');
const { startPaymentReminderJob } = require('./jobs/paymentReminderJob');
const { startNotificationRetryJob } = require('./jobs/notificationRetryJob');