Skip to content

Commit 5433a0c

Browse files
authored
Merge pull request #3791 from bluewave-labs/chore/fix-access-modifier
chore: protected -> private as no class inherits
2 parents 9c04061 + d485adb commit 5433a0c

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

server/src/domain/app-settings/app-settings.repository.mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AppSettingsModel, type AppSettingsDocument } from "@/domain/app-setting
55
import { toStringId, toDateString } from "@/utils/mongoMappers.js";
66

77
class MongoSettingsRepository implements ISettingsRepository {
8-
protected toEntity = (doc: AppSettingsDocument): Settings => {
8+
private toEntity = (doc: AppSettingsDocument): Settings => {
99
return {
1010
id: toStringId(doc._id),
1111
checkTTL: doc.checkTTL,

server/src/domain/dlq/dlq.repository.mongo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import mongoose from "mongoose";
66
import { AppError } from "@/utils/AppError.js";
77
import { toStringId, toDateString } from "@/utils/mongoMappers.js";
88
class MongoDLQRepository implements IDLQRepository {
9-
protected toEntity = (doc: DLQItemDocument): DLQItem => {
9+
private toEntity = (doc: DLQItemDocument): DLQItem => {
1010
return {
1111
id: toStringId(doc._id),
1212
type: doc.type,
@@ -23,7 +23,7 @@ class MongoDLQRepository implements IDLQRepository {
2323
};
2424
};
2525

26-
protected mapDocuments = (documents: DLQItemDocument[] | DLQItemDocument | null): DLQItem[] => {
26+
private mapDocuments = (documents: DLQItemDocument[]) => {
2727
if (!documents) {
2828
return [];
2929
}

server/src/domain/incidents/incident.repository.mongo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MongoIncidentsRepository implements IIncidentsRepository {
3333
return matchStage;
3434
}
3535

36-
protected toEntity = (doc: IncidentDocument): Incident => {
36+
private toEntity = (doc: IncidentDocument): Incident => {
3737
return {
3838
id: toStringId(doc._id),
3939
monitorId: toStringId(doc.monitorId),
@@ -52,7 +52,7 @@ class MongoIncidentsRepository implements IIncidentsRepository {
5252
};
5353
};
5454

55-
protected mapDocuments = (documents: IncidentDocument[] | IncidentDocument | null): Incident[] => {
55+
private mapDocuments = (documents: IncidentDocument[]): Incident[] => {
5656
if (!documents) {
5757
return [];
5858
}

server/src/domain/invites/invite.repository.mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import crypto from "crypto";
66
import { toStringId, toDateString } from "@/utils/mongoMappers.js";
77

88
class MongoInvitesRepository implements IInvitesRepository {
9-
protected toEntity = (doc: InviteDocument): Invite => {
9+
private toEntity = (doc: InviteDocument): Invite => {
1010
return {
1111
id: toStringId(doc._id),
1212
email: doc.email,

server/src/domain/queue-workers/queue-worker.repository.mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const SERVICE_NAME = "MongoQueueWorkersRepository";
77
class MongoQueueWorkersRepository implements IQueueWorkersRepository {
88
static SERVICE_NAME = SERVICE_NAME;
99

10-
protected toEntity = (doc: QueueWorkerDocument): QueueWorker => {
10+
private toEntity = (doc: QueueWorkerDocument): QueueWorker => {
1111
return {
1212
workerId: doc._id,
1313
mode: doc.mode,

server/src/domain/recovery-tokens/recovery-token.repository.mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const SERVICE_NAME = "MongoRecoveryTokensRepository";
1010
class MongoRecoveryTokensRepository implements IRecoveryTokensRepository {
1111
static SERVICE_NAME = SERVICE_NAME;
1212

13-
protected toEntity = (doc: RecoveryTokenDocument): RecoveryToken => {
13+
private toEntity = (doc: RecoveryTokenDocument): RecoveryToken => {
1414
return {
1515
id: toStringId(doc._id),
1616
email: doc.email,

server/src/domain/tags/tag.repository.mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const SERVICE_NAME = "TagsRepository";
99
class MongoTagsRepository implements ITagsRepository {
1010
static SERVICE_NAME = SERVICE_NAME;
1111

12-
protected toEntity = (doc: TagDocument): Tag => {
12+
private toEntity = (doc: TagDocument): Tag => {
1313
return {
1414
id: toStringId(doc._id),
1515
teamId: toStringId(doc.teamId),

server/src/domain/users/user.repository.mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MongoUsersRepository implements IUsersRepository {
2020
};
2121
};
2222

23-
protected toEntity = (doc: UserDocument): User => {
23+
private toEntity = (doc: UserDocument): User => {
2424
return {
2525
id: toStringId(doc._id),
2626
firstName: doc.firstName,

0 commit comments

Comments
 (0)