This commit is contained in:
aozhiwei 2022-04-17 08:06:01 +08:00
parent 6ff510cd95
commit 3b3e2ff5ed

2
db.js
View File

@ -159,7 +159,7 @@ class DB {
const {err, rows} = await this.ormSelect(tblName, whereList);
return {
'err': err,
'row': rows.length > 0 ? rows[0] : null
'row': rows && rows.length > 0 ? rows[0] : null
};
}