remove old DB references
This commit is contained in:
1 parent
f337ca5ff0
commit
b6b1b8464c
3 files changed
+11
-6
No files matched your search
@@ -227,6 +227,11 @@ class MongoChecksRepository implements IChecksRepository {
|
||||
} as unknown as CheckDocument;
|
||||
};
|
||||
|
||||
create = async (check: Check) => {
|
||||
const savedCheck = await CheckModel.create(check);
|
||||
return this.toEntity(savedCheck);
|
||||
};
|
||||
|
||||
createChecks = async (checks: Check[]) => {
|
||||
const docs = checks.map((check) => this.toDocument(check));
|
||||
const inserted = await CheckModel.insertMany(docs);
|
||||
|
||||
Reference in new issue
Block a user