protected -> private as no class inherits
This commit is contained in:
1 parent
9c04061a04
commit
3eadb99c5e
8 files changed
+10
-10
No files matched your search
@@ -33,7 +33,7 @@ class MongoIncidentsRepository implements IIncidentsRepository {
|
||||
return matchStage;
|
||||
}
|
||||
|
||||
protected toEntity = (doc: IncidentDocument): Incident => {
|
||||
private toEntity = (doc: IncidentDocument): Incident => {
|
||||
return {
|
||||
id: toStringId(doc._id),
|
||||
monitorId: toStringId(doc.monitorId),
|
||||
@@ -52,7 +52,7 @@ class MongoIncidentsRepository implements IIncidentsRepository {
|
||||
};
|
||||
};
|
||||
|
||||
protected mapDocuments = (documents: IncidentDocument[] | IncidentDocument | null): Incident[] => {
|
||||
private mapDocuments = (documents: IncidentDocument[] | IncidentDocument | null): Incident[] => {
|
||||
if (!documents) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user