fix: resolve typecheck errors in api and config

This commit is contained in:
Peter Steinberger
2026-02-04 03:32:09 -08:00
parent 589e46353b
commit ca1ef737cb
3 changed files with 6 additions and 6 deletions
+4
View File
@@ -596,6 +596,10 @@ async function usersPostRouterV1Handler(ctx: ActionCtx, request: Request) {
}
}
if (!role) {
return text('Invalid role', 400, rate.headers)
}
try {
const result = await ctx.runMutation(internal.users.setRoleInternal, {
actorUserId,
+2 -1
View File
@@ -73,7 +73,8 @@ const HARD_DELETE_PHASES = [
type HardDeletePhase = (typeof HARD_DELETE_PHASES)[number]
function isHardDeletePhase(value: string | undefined): value is HardDeletePhase {
return Boolean(value) && (HARD_DELETE_PHASES as readonly string[]).includes(value)
if (!value) return false
return (HARD_DELETE_PHASES as readonly string[]).includes(value)
}
async function scheduleHardDelete(
-5
View File
@@ -75,11 +75,6 @@ const config = defineConfig({
onwarn: handleRollupWarning,
},
},
ssr: {
rollupOptions: {
onwarn: handleRollupWarning,
},
},
})
export default config