add TODOs

This commit is contained in:
Alex Holliday committed 2026-02-20 15:11:37 -08:00
1 parent 3763b668ed
commit b708e83cce
5 files changed
+14 -1

No files matched your search

@@ -17,6 +17,7 @@ export interface SummaryConfig {
export interface IMonitorsRepository {
// create
create(monitor: Monitor, teamId: string, userId: string): Promise<Monitor | null>;
// TODO rename createMonitors
createBulkMonitors(monitors: Monitor[]): Promise<Monitor[]>;
// single fetch
findById(monitorId: string, teamId: string): Promise<Monitor>;
@@ -12,6 +12,7 @@ class MongoMonitorsRepository implements IMonitorsRepository {
return this.toEntity(saved);
};
// TODO rename to createMonitors, must accept JSON
createBulkMonitors = async (monitors: Monitor[]): Promise<Monitor[]> => {
if (!monitors.length) {
return [];