mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 23:39:25 +00:00
refactor(authz): move to domain-based authz and flatten routes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user