明树Git Lab

Commit 879382cf authored by zfp1's avatar zfp1

update

parent 9b7853ef
Pipeline #103854 passed with stage
in 3 seconds
......@@ -512,7 +512,9 @@ async function listProject(req, res, next) {
}
search.limit = limit;
search.offset = offset;
search.attributes = req.body.attributes || [];
if(req.body.attributes.length) {
search.attributes = req.body.attributes;
}
let ret = await DB.Project.findAndCountAll(search);
return res.sendData(ret);
} catch (error) {
......
......@@ -48,7 +48,7 @@ const User = sequelize.define('User', {
// 同步模型到数据库(创建表)
User.sync({
// force: false,
force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
......
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