update models and create consumer domain accounts permissions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user