Skip to content

Commit

Permalink
chore: bump to 1.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 14, 2023
1 parent f2c3d5e commit 5da7af7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cadt",
"version": "1.6.8",
"version": "1.6.10",
"_comment": "DONT CHANGE MAJOR UNLESS DATAMODEL CHANGES: The major version corresponds to the datamodel version your using, so 2.0.0 means it'll use datamodel v2",
"private": true,
"bin": "build/server.js",
Expand Down
16 changes: 0 additions & 16 deletions src/controllers/project.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,6 @@ export const findAll = async (req, res) => {
order,
} = req.query;

if (!page) {
let redirectUrl = `${req.baseUrl}?page=1&limit=10`;

if (Object.keys(req.query).length > 0) {
redirectUrl = redirectUrl.concat(
'&',
Object.keys(req.query)
.map((key) => `${key}=${req.query[key]}`)
.join('&'),
);
}

// Redirect to the modified URL
return res.redirect(301, redirectUrl);
}

let where = orgUid != null && orgUid !== 'all' ? { orgUid } : undefined;

if (filter) {
Expand Down
16 changes: 0 additions & 16 deletions src/controllers/units.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,6 @@ export const findAll = async (req, res) => {
filter,
} = req.query;

if (!page) {
let redirectUrl = `${req.baseUrl}?page=1&limit=10`;

if (Object.keys(req.query).length > 0) {
redirectUrl = redirectUrl.concat(
'&',
Object.keys(req.query)
.map((key) => `${key}=${req.query[key]}`)
.join('&'),
);
}

// Redirect to the modified URL
return res.redirect(301, redirectUrl);
}

let where = orgUid != null && orgUid !== 'all' ? { orgUid } : undefined;

if (filter) {
Expand Down

0 comments on commit 5da7af7

Please sign in to comment.