Skip to content

Commit e4acd2c

Browse files
committed
Fix response code in invite-user
1 parent a224aa0 commit e4acd2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/typescript/rest/authRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ authRouter.post("/invite-user", inviteUserDtoValidator, async (req, res) => {
126126
)
127127
) {
128128
res
129-
.status(400)
129+
.status(401)
130130
.json({ error: "User is not authorized to invite user. " });
131131
return;
132132
}

0 commit comments

Comments
 (0)