add findByIdLean for workers
This commit is contained in:
1 parent
f740eef0fa
commit
190a3b47da
2 files changed
+7
No files matched your search
@@ -22,6 +22,8 @@ export interface IMonitorsRepository {
|
||||
createMonitors(monitors: Monitor[]): Promise<Monitor[]>;
|
||||
// single fetch
|
||||
findById(monitorId: string, teamId: string): Promise<Monitor>;
|
||||
// for workers, don't need all details
|
||||
findByIdLean(monitorId: string): Promise<Monitor | null>;
|
||||
|
||||
// collection fetch
|
||||
findAll(): Promise<Monitor[] | null>;
|
||||
|
||||
Reference in new issue
Block a user