Added some comments RE fake database
This commit is contained in:
1 parent
2e2d91937e
commit
49a11b5abb
2 files changed
+8
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in new issue
Block a user