Skip to content

Commit 3f7e17d

Browse files
Format
1 parent c609804 commit 3f7e17d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/api/access_codes/create_multiple.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export default withRouteSpec({
5959
workspace_id: req.auth.workspace_id,
6060
...(starts_at != null && ends_at != null
6161
? {
62-
starts_at: new Date(starts_at).toISOString(),
63-
ends_at: new Date(ends_at).toISOString(),
62+
starts_at: new Date(starts_at as string).toISOString(),
63+
ends_at: new Date(ends_at as string).toISOString(),
6464
type: "time_bound",
6565
}
6666
: { type: "ongoing" }),
@@ -72,7 +72,7 @@ export default withRouteSpec({
7272

7373
created_access_codes.push(access_code)
7474

75-
if (use_backup_access_code_pool) {
75+
if (use_backup_access_code_pool === true) {
7676
const code = Math.random().toString().slice(-4)
7777
req.db.addAccessCode({
7878
code,

0 commit comments

Comments
 (0)