Remove SendAccountData, since InputAccountData is already doing that

This commit is contained in:
Till Faelligen 2022-09-30 17:31:41 +02:00
parent 60ec9180e6
commit 3617d5a0ff
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -796,11 +796,6 @@ func (a *UserInternalAPI) PerformPushRulesPut(
if err := a.InputAccountData(ctx, &userReq, &userRes); err != nil {
return err
}
if err := a.SyncProducer.SendAccountData(req.UserID, eventutil.AccountData{
Type: pushRulesAccountDataType,
}); err != nil {
util.GetLogger(ctx).WithError(err).Errorf("syncProducer.SendData failed")
}
return nil
}