summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-10 16:07:01 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-10 16:07:01 +0200
commitd20a42af18ff641f365bcee2069cb660cc6dbe35 (patch)
treec80207aacb151589fa22366443eb8dece2abe715 /api
parentAdd migrations (diff)
downloadserver-d20a42af18ff641f365bcee2069cb660cc6dbe35.tar.xz
Make teams nullable
Diffstat (limited to 'api')
-rw-r--r--api/src/routes/applications/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/src/routes/applications/index.ts b/api/src/routes/applications/index.ts
index 41ce35b5..033dcc51 100644
--- a/api/src/routes/applications/index.ts
+++ b/api/src/routes/applications/index.ts
@@ -23,10 +23,9 @@ router.post("/", route({}), async (req: Request, res: Response) => {
 		name: trimSpecial(body.name),
 		description: "",
 		bot_public: true,
-		bot_require_code_grant: false,
 		owner: user,
 		verify_key: "IMPLEMENTME",
-		flags: ""
+		flags: 0
 	});
 	await app.save();
 	res.json(app).status(200);