feat: implement partner licenses module with pagination and filtering capabilities

This commit is contained in:
2026-04-26 09:54:48 +03:30
parent b72e6c7194
commit 34793295c9
24 changed files with 459 additions and 76 deletions
+12 -2
View File
@@ -23,12 +23,22 @@ export class PosGuard {
const { posId } = cookie
if (!posId) {
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
return false
// throw new ForbiddenException('شما دسترسی لازم را ندارید.')
}
const checkLicenseActivation = await this.prisma.licenseAccountAllocation.findFirst({
where: {
account_id: tokenPayload.account_id,
OR: [
{
account_id: tokenPayload.account_id,
},
{
account: {
consumer_id: tokenPayload.user?.id,
},
},
],
license_activation: {
OR: [
{