diff --git a/src/controllers/project.controller.js b/src/controllers/project.controller.js index 2b3ed41f..96823853 100644 --- a/src/controllers/project.controller.js +++ b/src/controllers/project.controller.js @@ -57,11 +57,6 @@ export const create = async (req, res) => { export const findAll = async (req, res) => { let { page, limit, search, orgUid, columns, useMock } = req.query; - if (useMock) { - res.json(ProjectMock.findAll({ ...paginationParams(page, limit) })); - return; - } - const includes = [ ProjectLocation, Qualification, diff --git a/src/controllers/units.controller.js b/src/controllers/units.controller.js index 2e80832e..8066b3aa 100644 --- a/src/controllers/units.controller.js +++ b/src/controllers/units.controller.js @@ -57,11 +57,6 @@ export const create = async (req, res) => { export const findAll = async (req, res) => { let { page, limit, columns } = req.query; - if (req.query.useMock) { - res.json(UnitMock.findAll({ ...paginationParams(page, limit) })); - return; - } - const includes = [ Qualification, ];