Skip to content

Commit 4cb6d79

Browse files
author
Ajit Kumar
committed
Fix public field assignment in sponsor creation to ensure correct boolean value
1 parent 8887411 commit 4cb6d79

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)