Skip to content

Commit db8626f

Browse files
authored
Merge pull request #35 from Acode-Foundation/fix-sponsor-api
Fix public field assignment in sponsor creation to ensure correct boo…
2 parents 8887411 + 4cb6d79 commit db8626f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/apis/sponsor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ router.post('/', async (req, res) => {
9191
[Sponsor.NAME, name],
9292
[Sponsor.TIER, tier],
9393
[Sponsor.EMAIL, email],
94-
[Sponsor.PUBLIC, show],
94+
[Sponsor.PUBLIC, show ? 1 : 0],
9595
[Sponsor.IMAGE, filename],
9696
[Sponsor.WEBSITE, website],
9797
[Sponsor.TAGLINE, tagline],

0 commit comments

Comments
 (0)