Skip to content

Commit

Permalink
🏗️build: build error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
blinko-space committed Nov 10, 2024
1 parent 3a62789 commit d713db5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/BlinkoSettings/AiSetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const AiSetting = observer(() => {
label="Select Model Provider"
>
{ai.modelProviderSelect.map((item) => (
<SelectItem key={item.value}>
<SelectItem key={item.value ?? ''}>
{item.label}
</SelectItem>
))}
Expand Down
6 changes: 3 additions & 3 deletions src/server/routers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export const userRouter = router({
canRegister: publicProcedure
.meta({ openapi: { method: 'POST', path: '/v1/user/can-register', summary: 'Check if can register admin', tags: ['User'] } })
.input(z.void())
.output(z.object({ ok: z.boolean() }))
.output(z.boolean())
.mutation(async () => {
const count = await prisma.accounts.count()
if (count > 0) {
return { ok: false }
return false
} else {
return { ok: true }
return true
}
}),
createAdmin: publicProcedure
Expand Down

0 comments on commit d713db5

Please sign in to comment.