narrow mapDocument types
This commit is contained in:
1 parent
3eadb99c5e
commit
d485adbb54
2 files changed
+2
-2
No files matched your search
@@ -23,7 +23,7 @@ class MongoDLQRepository implements IDLQRepository {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
private mapDocuments = (documents: DLQItemDocument[] | DLQItemDocument | null): DLQItem[] => {
|
private mapDocuments = (documents: DLQItemDocument[]) => {
|
||||||
if (!documents) {
|
if (!documents) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class MongoIncidentsRepository implements IIncidentsRepository {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
private mapDocuments = (documents: IncidentDocument[] | IncidentDocument | null): Incident[] => {
|
private mapDocuments = (documents: IncidentDocument[]): Incident[] => {
|
||||||
if (!documents) {
|
if (!documents) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user