fix import channel id
Signed-off-by: Ben Hall <ben@benh.codes>
This commit is contained in:
parent
b830bd0833
commit
d9986c754a
@ -620,10 +620,13 @@ func ImportHandler(ctx *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
if ticket.ChannelId != nil {
|
||||
if err := dbclient.Client.Tickets.SetChannelId(ctx, guildId, newTicketId, *ticket.ChannelId); err != nil {
|
||||
ctx.JSON(500, utils.ErrorJson(err))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if err := dbclient.Client.Tickets.SetHasTranscript(ctx, guildId, newTicketId, ticket.HasTranscript); err != nil {
|
||||
ctx.JSON(500, utils.ErrorJson(err))
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user