明树Git Lab

Commit a50c4d89 authored by zfp1's avatar zfp1

update

parent add64d90
Pipeline #104077 passed with stage
in 3 seconds
......@@ -678,8 +678,10 @@ async function getOwnProjects(req, res, next) {
//
let cArr = [
{ projectCreator: req.user.id },
{ id: { [Op.in]: projectIds } }
]
if(projectIds.length > 0) {
cArr.push({ id: { [Op.in]: projectIds } })
}
if (req.body.projectName) {
cArr.push({ projectName: { [Op.like]: `%${req.body.projectName}%` } });
}
......
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