From fafb524a4700ffb4b8ed259906c2f76b5609b2f8 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 25 Jan 2022 18:05:17 +0000 Subject: [PATCH] accounts: link ombi/discord when adding --- api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.go b/api.go index 14dda40..4eb7ea6 100644 --- a/api.go +++ b/api.go @@ -2586,6 +2586,7 @@ func (app *appContext) TelegramAddUser(gc *gin.Context) { app.telegram.verifiedTokens[len(app.telegram.verifiedTokens)-1], app.telegram.verifiedTokens[tokenIndex] = app.telegram.verifiedTokens[tokenIndex], app.telegram.verifiedTokens[len(app.telegram.verifiedTokens)-1] app.telegram.verifiedTokens = app.telegram.verifiedTokens[:len(app.telegram.verifiedTokens)-1] } + linkExistingOmbiDiscordTelegram(app) respondBool(200, true, gc) } @@ -2964,6 +2965,7 @@ func (app *appContext) DiscordConnect(gc *gin.Context) { respondBool(500, false, gc) return } + linkExistingOmbiDiscordTelegram(app) respondBool(200, true, gc) }