Skip to content

Commit d1703b6

Browse files
committed
fix: do not filter none
1 parent 0d65b22 commit d1703b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/Query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ async function submitBot(
641641
git: data.git,
642642
url: data.url,
643643
category: JSON.stringify(data.category),
644-
enforcements: JSON.stringify(data.enforcements.filter((el) => el !== 'NONE')),
644+
enforcements: JSON.stringify(data.enforcements),
645645
discord: data.discord,
646646
state: 0,
647647
})
@@ -751,7 +751,7 @@ async function updateBot(id: string, data: ManageBot): Promise<number> {
751751
intro: data.intro,
752752
desc: data.desc,
753753
vanity: data.vanity,
754-
enforcements: JSON.stringify(data.enforcements.filter((el) => el !== 'NONE')),
754+
enforcements: JSON.stringify(data.enforcements),
755755
banner: data.banner,
756756
bg: data.bg,
757757
})

0 commit comments

Comments
 (0)