Skip to content

Commit 8f1056b

Browse files
committed
refactor: check team helper function
1 parent 5e49d4f commit 8f1056b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/team.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ export const updateTeam = async (req, res, next) => {
714714
const existingDep = depResult.department;
715715

716716
// Check if team exists
717-
const teamResult = await checkTeam(teamId, organizationId);
717+
const teamResult = await checkTeam(teamId, organizationId, departmentId);
718718
if (!teamResult.success) {
719719
return res.status(404).json({
720720
success: false,

0 commit comments

Comments
 (0)