明树Git Lab

Commit 38dba450 authored by zfp1's avatar zfp1

update

parent b5a442a3
Pipeline #104011 passed with stage
in 3 seconds
...@@ -512,7 +512,7 @@ async function listProject(req, res, next) { ...@@ -512,7 +512,7 @@ async function listProject(req, res, next) {
} }
search.limit = limit; search.limit = limit;
search.offset = offset; search.offset = offset;
if(req.body.attributes.length) { if(req.body.attributes && req.body.attributes.length) {
search.attributes = req.body.attributes; search.attributes = req.body.attributes;
} }
let ret = await DB.Project.findAndCountAll(search); let ret = await DB.Project.findAndCountAll(search);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment