From 2a096106d2d03e2e43fd97b4cd412282f133bdb1 Mon Sep 17 00:00:00 2001 From: Anton Stjernquist <32514829+antonstjernquist@users.noreply.github.com> Date: Mon, 19 Sep 2022 00:02:02 +0200 Subject: [PATCH] fix: use correct event for changeDefaultAccount (#89) --- src/server/services/account/account.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/services/account/account.service.ts b/src/server/services/account/account.service.ts index 48775ad2..c494e1b4 100644 --- a/src/server/services/account/account.service.ts +++ b/src/server/services/account/account.service.ts @@ -538,7 +538,7 @@ export class AccountService { await newDefaultAccount.update({ isDefault: true }, { transaction: t }); t.afterCommit(() => { - emit(AccountEvents.UpdatedDefaultAccount, newDefaultAccount.toJSON()); + emit(AccountEvents.ChangedDefaultAccount, newDefaultAccount.toJSON()); }); t.commit();