Template
1
0

feat: biome check

This commit is contained in:
2025-09-25 14:29:15 +02:00
parent f2ba21a7e3
commit 0819534901
68 changed files with 211 additions and 802 deletions

View File

@@ -1,5 +1,5 @@
import { getEnvironmentVariable } from "@platform/config/environment.ts";
import { SerializeOptions } from "cookie";
import type { SerializeOptions } from "cookie";
import z from "zod";
export const config = {

View File

@@ -18,4 +18,4 @@
"cookie": "1.0.2",
"zod": "4.1.11"
}
}
}

View File

@@ -1,6 +1,6 @@
import route from "./spec.ts";
export default route.access("session").handle(async ({ params: { id } }, { session, principal, access }) => {
export default route.access("session").handle(async () => {
// const user = await getUserById(id);
// if (user === undefined) {
// return new NotFoundError("Identity does not exist, or has been removed.");

View File

@@ -1,6 +1,6 @@
import route from "./spec.ts";
export default route.access("public").handle(async ({ body: { email } }) => {
export default route.access("public").handle(async () => {
// const code = await Passwordless.createCode({ tenantId: "public", email });
// if (code.status !== "OK") {
// return logger.info({

View File

@@ -1,5 +1,4 @@
import { ForbiddenError } from "@platform/relay";
import { NotFoundError } from "@platform/relay";
import { ForbiddenError, NotFoundError } from "@platform/relay";
import { getPrincipalById, setPrincipalRolesById } from "../../services/database.ts";
import route from "./spec.ts";

View File

@@ -1,6 +1,6 @@
import { cerbos } from "@platform/cerbos";
import { Principal } from "../models/principal.ts";
import type { Principal } from "../models/principal.ts";
export function getAccessControlMethods(principal: Principal) {
return {

View File

@@ -1,11 +1,11 @@
import { getDatabaseAccessor } from "@platform/database/accessor.ts";
import {
parsePrincipal,
type Principal,
PRINCIPAL_TYPE_NAMES,
type Principal,
PrincipalSchema,
PrincipalTypeId,
parsePrincipal,
} from "../models/principal.ts";
export const db = getDatabaseAccessor<{