Skip to content

Commit

Permalink
fix user.resetNotifySettings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
teamgramio committed Mar 13, 2022
1 parent c91afd8 commit 995c6fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ Thumbs.db
/teamgramd/logs/status/
/teamgramd/bin/GeoLite2-City.mmdb
/teamgramd/bin/GeoLite2-Country.mmdb
app/service/biz/username/cmd/username/username
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (c *UserCore) UserResetNotifySettings(in *user.TLUserResetNotifySettings) (
rValue *mtproto.Bool
)

if _, err := c.svcCtx.Dao.UserNotifySettingsDAO.DeleteAll(c.ctx, c.MD.UserId); err != nil {
if _, err := c.svcCtx.Dao.UserNotifySettingsDAO.DeleteAll(c.ctx, in.UserId); err != nil {
c.Logger.Errorf("user.resetNotifySettings - error: %v", err)
rValue = mtproto.BoolFalse
} else {
Expand Down
Binary file removed app/service/biz/username/cmd/username/username
Binary file not shown.

0 comments on commit 995c6fb

Please sign in to comment.