fix: panel importer

Signed-off-by: Ben Hall <ben@benh.codes>
This commit is contained in:
Ben Hall 2025-02-09 20:44:11 +00:00
parent 1ceb844df7
commit 89ce1991a5

View File

@ -532,7 +532,7 @@ func ImportHandler(ctx *gin.Context) {
// Import Panels
log.Logger.Info("Importing panels", zap.Uint64("guild", guildId))
for _, panel := range data.Panels {
if _, ok := panelIdMap[panel.PanelId]; ok {
if _, ok := panelIdMap[panel.PanelId]; !ok {
if premiumTier < premium.Premium && panelCount > 2 {
panel.ForceDisabled = true
panel.Disabled = true