ActivityPub-federated video streaming platform using P2P directly in your web browser
Avoid "No changed keys found" error
Chocobozzz3a6e3c9dee2f
diff --git a/server/core/helpers/database-utils.ts b/server/core/helpers/database-utils.tsindex 6a8e3fdb84..30ecfa6f2b 100644--- a/server/core/helpers/database-utils.ts+++ b/server/core/helpers/database-utils.ts@@ -69,8 +69,7 @@ function transactionRetryer <T> (func: (err: any, data: T) => any) {}function saveInTransactionWithRetries <T extends Pick<Model, 'save' | 'changed'>> (model: T) {- const changedKeys = model.changed()- if (!changedKeys) throw new Error('No changed keys found')+ const changedKeys = model.changed() || []return retryTransactionWrapper(() => {return sequelizeTypescript.transaction(async transaction => {diff --git a/server/core/lib/user-import-export/user-exporter.ts b/server/core/lib/user-import-export/user-exporter.tsindex a0aa237e06..3ea6b00ff5 100644--- a/server/core/lib/user-import-export/user-exporter.ts+++ b/server/core/lib/user-import-export/user-exporter.ts@@ -287,8 +287,6 @@ export class UserExporter {this.archive.on('entry', entryListener)- logger.error('Adding stream ' + archivePath)-// Prevent sending a stream that has an error on open resulting in a stucked archiving processstream.once('readable', () => {if (errored) return