Added some comments RE fake database

This commit is contained in:
Alex Holliday committed 2024-05-10 14:03:36 -07:00
1 parent 2e2d91937e
commit 49a11b5abb
2 files changed
+8

No files matched your search

+2
View File
@@ -2,6 +2,8 @@ const {
getMonitorsByIdValidation,
getMonitorsByUserIdValidation,
} = require("../validation/joi");
// Fake database, if we have standardized DB methods we can swap out databases easily
const db = require("../db/FakeDb");
// Gets all monitors
+6
View File
@@ -1,3 +1,9 @@
// **************************
// FakeDB is used to simulate the database
// If we standarize the DB methods we can swap out databases easily
// Too bad JS doesn't have interfaces, that would be nice. TypeScript anyone?
// **************************
const Monitor = require("../models/Monitor");
const FAKE_MONITOR_DATA = [];