Skip to content

Commit

Permalink
feat: remove old stub logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeen committed Jan 10, 2022
1 parent 5df63a5 commit a275632
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/controllers/project.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 0 additions & 5 deletions src/controllers/units.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
Expand Down

0 comments on commit a275632

Please sign in to comment.