DB migrations
This commit is contained in:
parent
83d50a33c5
commit
faf55caef6
@ -100,7 +100,7 @@ func MultiPanelCreate(ctx *gin.Context) {
|
|||||||
panel := panel
|
panel := panel
|
||||||
|
|
||||||
group.Go(func() error {
|
group.Go(func() error {
|
||||||
return dbclient.Client.MultiPanelTargets.Insert(multiPanel.Id, panel.MessageId)
|
return dbclient.Client.MultiPanelTargets.Insert(multiPanel.Id, panel.PanelId)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ func MultiPanelUpdate(ctx *gin.Context) {
|
|||||||
panel := panel
|
panel := panel
|
||||||
|
|
||||||
group.Go(func() error {
|
group.Go(func() error {
|
||||||
return dbclient.Client.MultiPanelTargets.Insert(multiPanel.Id, panel.MessageId)
|
return dbclient.Client.MultiPanelTargets.Insert(multiPanel.Id, panel.PanelId)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ func UpdatePanel(ctx *gin.Context) {
|
|||||||
|
|
||||||
// check if this will break a multi-panel;
|
// check if this will break a multi-panel;
|
||||||
// first, get any multipanels this panel belongs to
|
// first, get any multipanels this panel belongs to
|
||||||
multiPanels, err := dbclient.Client.MultiPanelTargets.GetMultiPanels(existing.MessageId)
|
multiPanels, err := dbclient.Client.MultiPanelTargets.GetMultiPanels(existing.PanelId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.JSON(500, utils.ErrorJson(err))
|
ctx.JSON(500, utils.ErrorJson(err))
|
||||||
return
|
return
|
||||||
|
2
go.mod
2
go.mod
@ -6,7 +6,7 @@ require (
|
|||||||
github.com/BurntSushi/toml v0.3.1
|
github.com/BurntSushi/toml v0.3.1
|
||||||
github.com/TicketsBot/archiverclient v0.0.0-20210220155137-a562b2f1bbbb
|
github.com/TicketsBot/archiverclient v0.0.0-20210220155137-a562b2f1bbbb
|
||||||
github.com/TicketsBot/common v0.0.0-20210527174309-f7344004ae32
|
github.com/TicketsBot/common v0.0.0-20210527174309-f7344004ae32
|
||||||
github.com/TicketsBot/database v0.0.0-20210528143711-553aaa228fff
|
github.com/TicketsBot/database v0.0.0-20210528144640-ac827439e059
|
||||||
github.com/TicketsBot/worker v0.0.0-20210528135955-34744f610804
|
github.com/TicketsBot/worker v0.0.0-20210528135955-34744f610804
|
||||||
github.com/apex/log v1.1.2
|
github.com/apex/log v1.1.2
|
||||||
github.com/boj/redistore v0.0.0-20180917114910-cd5dcc76aeff // indirect
|
github.com/boj/redistore v0.0.0-20180917114910-cd5dcc76aeff // indirect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user