We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c609804 commit 3f7e17dCopy full SHA for 3f7e17d
src/pages/api/access_codes/create_multiple.ts
@@ -59,8 +59,8 @@ export default withRouteSpec({
59
workspace_id: req.auth.workspace_id,
60
...(starts_at != null && ends_at != null
61
? {
62
- starts_at: new Date(starts_at).toISOString(),
63
- ends_at: new Date(ends_at).toISOString(),
+ starts_at: new Date(starts_at as string).toISOString(),
+ ends_at: new Date(ends_at as string).toISOString(),
64
type: "time_bound",
65
}
66
: { type: "ongoing" }),
@@ -72,7 +72,7 @@ export default withRouteSpec({
72
73
created_access_codes.push(access_code)
74
75
- if (use_backup_access_code_pool) {
+ if (use_backup_access_code_pool === true) {
76
const code = Math.random().toString().slice(-4)
77
req.db.addAccessCode({
78
code,
0 commit comments