Skip to content

Commit

Permalink
fix: use correct event for changeDefaultAccount (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonstjernquist authored Sep 18, 2022
1 parent 9be4e72 commit 2a09610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/services/account/account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2a09610

Please sign in to comment.