fix: wrong condition
This commit is contained in:
parent
5b75fe46b0
commit
cb0ac4f0be
1 changed files with 1 additions and 1 deletions
|
|
@ -569,7 +569,7 @@ export class UserController extends Controller {
|
|||
}),
|
||||
]);
|
||||
|
||||
if (branch[0]?.id !== user.branch[0]?.id) {
|
||||
if (branch[0]?.id !== user.branch[0]?.branchId) {
|
||||
const updated = await userBranchCodeGen(user, branch[0]);
|
||||
record.code = updated.code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue