allowed null parent
gitea/salix/test This commit looks good
Details
gitea/salix/test This commit looks good
Details
This commit is contained in:
parent
524c4e59ed
commit
19f666fee3
|
@ -31,7 +31,7 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Self.getLeaves = async(zoneFk, parentFk = 1, filter) => {
|
Self.getLeaves = async(zoneFk, parentFk, filter) => {
|
||||||
let conn = Self.dataSource.connector;
|
let conn = Self.dataSource.connector;
|
||||||
let stmts = [];
|
let stmts = [];
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ module.exports = Self => {
|
||||||
isIncluded TINYINT
|
isIncluded TINYINT
|
||||||
) ENGINE = MEMORY`));
|
) ENGINE = MEMORY`));
|
||||||
|
|
||||||
if (parentFk === 1) {
|
if (!parentFk) {
|
||||||
stmts.push(new ParameterizedSQL(
|
stmts.push(new ParameterizedSQL(
|
||||||
`INSERT INTO tmp.checkedChilds
|
`INSERT INTO tmp.checkedChilds
|
||||||
SELECT
|
SELECT
|
||||||
|
|
Loading…
Reference in New Issue