From bf472b0c5e761fd612b3ea085e3167df2343f316 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Apr 2019 19:36:57 +0900 Subject: [PATCH] refactor --- src/server/api/endpoints/app/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/app/create.ts b/src/server/api/endpoints/app/create.ts index c7e7e516ad..71f21fdf47 100644 --- a/src/server/api/endpoints/app/create.ts +++ b/src/server/api/endpoints/app/create.ts @@ -38,7 +38,7 @@ export default define(meta, async (ps, user) => { const app = await Apps.save({ id: genId(), createdAt: new Date(), - userId: user && user.id, + userId: user ? user.id : null, name: ps.name, description: ps.description, permission: ps.permission,