mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(user): push guild member updates on profile field changes (#2850)
This commit is contained in:
1 parent
ac3450ab32
commit
bf7567b768
8 files changed
+223
-42
No files matched your search
@@ -87,6 +87,7 @@ export class UserAccountService {
|
||||
gatewayService,
|
||||
mediaService,
|
||||
userRepository: userAccountRepository,
|
||||
guildRepository,
|
||||
});
|
||||
this.lookupService = new UserAccountLookupService({
|
||||
userAccountRepository,
|
||||
@@ -193,7 +194,7 @@ export class UserAccountService {
|
||||
() => this.updatePropagator.dispatchUserUpdate(updatedUser),
|
||||
async () => {
|
||||
if (hasPartialUserFieldsChanged(user, updatedUser)) {
|
||||
await this.updatePropagator.updateUserCache(updatedUser);
|
||||
await this.updatePropagator.propagatePartialUserChange(updatedUser);
|
||||
}
|
||||
},
|
||||
async () => {
|
||||
@@ -240,7 +241,7 @@ export class UserAccountService {
|
||||
const updatedUser = await this.userAccountRepository.patchUpsert(user.id, updates, user.toRow());
|
||||
await this.updatePropagator.dispatchUserUpdate(updatedUser);
|
||||
if (hasPartialUserFieldsChanged(user, updatedUser)) {
|
||||
await this.updatePropagator.updateUserCache(updatedUser);
|
||||
await this.updatePropagator.propagatePartialUserChange(updatedUser);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user