fix: wrong field used

This commit is contained in:
Methapon2001 2024-08-14 20:40:31 +07:00
parent cb0ac4f0be
commit d15273de1b
3 changed files with 3 additions and 3 deletions

View file

@ -535,7 +535,7 @@ export class BranchController extends Controller {
subDistrict: true,
createdBy: true,
updatedBy: true,
user: { where: { id: req.user.sub } },
user: { where: { userId: req.user.sub } },
},
where: { id: branchId },
});