Skip to content

Commit

Permalink
Add readonly attrib to injected prisma mapper in each agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ognjenkurtic committed Jan 24, 2024
1 parent 2bc80d4 commit d3319ca
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { BpiMessage } from '../models/bpiMessage';
@Injectable()
export class BpiMessageStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly encryptionService: EncryptionService,
private readonly prisma: PrismaService,
) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { BpiSubjectAccount } from '../models/bpiSubjectAccount';
@Injectable()
export class BpiSubjectAccountStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BpiSubjectRole, BpiSubjectRoleName } from '../models/bpiSubjectRole';
@Injectable()
export class BpiSubjectStorageAgent extends PrismaService {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { BpiMerkleTree } from '../models/bpiMerkleTree';
@Injectable()
export class MerkleTreeStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { BpiAccount } from '../models/bpiAccount';
@Injectable()
export class BpiAccountStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TransactionStatus } from '../models/transactionStatus.enum';
@Injectable()
export class TransactionStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Workflow } from '../models/workflow';
@Injectable()
export class WorkflowStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Workgroup } from '../models/workgroup';
@Injectable()
export class WorkgroupStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Workstep } from '../models/workstep';
@Injectable()
export class WorkstepStorageAgent {
constructor(
private mapper: PrismaMapper,
private readonly mapper: PrismaMapper,
private readonly prisma: PrismaService,
) {}

Expand Down

0 comments on commit d3319ca

Please sign in to comment.