no message

This commit is contained in:
kittapath 2025-01-21 15:11:49 +07:00
parent c34224c315
commit cc20148fde

View file

@ -7531,13 +7531,12 @@ export class ProfileController extends Controller {
.where((qb) => { .where((qb) => {
if (body.rootId) { if (body.rootId) {
qb.andWhere("posMaster.orgRootId = :rootId", { rootId: body.rootId }); qb.andWhere("posMaster.orgRootId = :rootId", { rootId: body.rootId });
qb.andWhere("posMaster.current_nextId IS NOT NULL");
} else { } else {
qb.andWhere("posMaster.orgRevisionId = :orgRevisionId", { qb.andWhere("posMaster.orgRevisionId = :orgRevisionId", {
orgRevisionId: findRevision?.id, orgRevisionId: findRevision?.id,
}); });
qb.andWhere("posMaster.current_holderId IS NOT NULL");
} }
qb.andWhere("posMaster.current_holderId IS NOT NULL");
}) })
.andWhere( .andWhere(
new Brackets((qb) => { new Brackets((qb) => {