refactor(authz): move to domain-based authz and flatten routes

This commit is contained in:
yiling
2026-05-25 23:51:37 +08:00
parent 35fd5c78ce
commit 9f9549255d
61 changed files with 1646 additions and 1147 deletions
+8
View File
@@ -67,6 +67,14 @@ export class MetadataService {
return fields
}
async getFieldByKey(
key: string,
): Promise<Prisma.MetadataFieldGetPayload<Record<string, never>> | null> {
return this.client.metadataField.findUnique({
where: { key },
})
}
async updateTeamField(
teamId: string,
fieldId: string,