mirror of
https://github.com/pushbits/server.git
synced 2025-06-17 01:51:59 +02:00
Revert confusing variable renaming
This commit is contained in:
parent
7985426a9f
commit
34abda1ede
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ func (h *UserHandler) deleteApplications(ctx *gin.Context, u *model.User) error
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *UserHandler) updateChannels(ctx *gin.Context, u *model.User, channelID string) error {
|
func (h *UserHandler) updateChannels(ctx *gin.Context, u *model.User, matrixID string) error {
|
||||||
applications, err := h.DB.GetApplications(u)
|
applications, err := h.DB.GetApplications(u)
|
||||||
if success := successOrAbort(ctx, http.StatusInternalServerError, err); !success {
|
if success := successOrAbort(ctx, http.StatusInternalServerError, err); !success {
|
||||||
return err
|
return err
|
||||||
|
@ -65,7 +65,7 @@ func (h *UserHandler) updateChannels(ctx *gin.Context, u *model.User, channelID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u.MatrixID = channelID
|
u.MatrixID = matrixID
|
||||||
|
|
||||||
for _, application := range applications {
|
for _, application := range applications {
|
||||||
err := h.AH.registerApplication(ctx, &application, u)
|
err := h.AH.registerApplication(ctx, &application, u)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue