narrow mapDocument types

This commit is contained in:
Alex Holliday committed 2026-07-20 10:04:55 -07:00
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) {
return [];
}
@@ -52,7 +52,7 @@ class MongoIncidentsRepository implements IIncidentsRepository {
};
};
private mapDocuments = (documents: IncidentDocument[] | IncidentDocument | null): Incident[] => {
private mapDocuments = (documents: IncidentDocument[]): Incident[] => {
if (!documents) {
return [];
}