update models and create consumer domain accounts permissions

This commit is contained in:
2026-04-11 14:47:05 +03:30
parent 89726c8904
commit 9cef733370
87 changed files with 2967 additions and 3352 deletions
+20
View File
@@ -53,4 +53,24 @@ export class PosService {
guild,
})
}
async getAccessible(account_id: string) {
const poses = await this.prisma.pos.findMany({
where: {
complex: {
business_activity: {
consumer: {
consumer_accounts: {
some: {
id: account_id,
},
},
},
},
},
},
})
return ResponseMapper.list(poses)
}
}