fix context panel import

Signed-off-by: Ben Hall <ben@benh.codes>
This commit is contained in:
Ben Hall 2025-02-09 13:49:45 +00:00
parent a453d9ac08
commit 5048358263
2 changed files with 5 additions and 3 deletions

View File

@ -582,8 +582,10 @@ func ImportHandler(ctx *gin.Context) {
}
}
newContextMenuPanel := panelIdMap[*data.Settings.ContextMenuPanel]
data.Settings.ContextMenuPanel = &newContextMenuPanel
if data.Settings.ContextMenuPanel != nil {
newContextMenuPanel := panelIdMap[*data.Settings.ContextMenuPanel]
data.Settings.ContextMenuPanel = &newContextMenuPanel
}
if err := dbclient.Client.Settings.Set(ctx, guildId, data.Settings); err != nil {
ctx.JSON(500, utils.ErrorJson(err))

View File

@ -1,4 +1,4 @@
export const API_URL = env.API_URL || "https://api.ticketsbot.cloud"
export const API_URL = env.API_URL || "http://localhost:8081"
export const PLACEHOLDER_DOCS_URL = "https://docs.ticketsbot.cloud/setup/placeholders.html"
export const OAUTH = {