mirror of
https://github.com/standardnotes/server
synced 2026-10-20 21:03:36 -04:00
fix(syncing-server): add missing content size recalculation handler binding
This commit is contained in:
@@ -261,6 +261,10 @@ export class ContainerConfigLoader {
|
||||
['ACCOUNT_DELETION_REQUESTED', container.get(TYPES.AccountDeletionRequestedEventHandler)],
|
||||
['EMAIL_BACKUP_REQUESTED', container.get(TYPES.EmailBackupRequestedEventHandler)],
|
||||
['CLOUD_BACKUP_REQUESTED', container.get(TYPES.CloudBackupRequestedEventHandler)],
|
||||
[
|
||||
'USER_CONTENT_SIZE_RECALCULATION_REQUESTED',
|
||||
container.get(TYPES.UserContentSizeRecalculationRequestedEventHandler),
|
||||
],
|
||||
])
|
||||
|
||||
if (env.get('SQS_QUEUE_URL', true)) {
|
||||
|
||||
+2
@@ -19,6 +19,8 @@ export class UserContentSizeRecalculationRequestedEventHandler implements Domain
|
||||
) {}
|
||||
|
||||
async handle(event: UserContentSizeRecalculationRequestedEvent): Promise<void> {
|
||||
this.logger.info(`Starting content size recalculation for user: ${event.payload.userUuid}`)
|
||||
|
||||
const stream = await this.itemRepository.streamAll({
|
||||
deleted: false,
|
||||
userUuid: event.payload.userUuid,
|
||||
|
||||
Reference in New Issue
Block a user