remove duplicated Number cast

This commit is contained in:
timothycarambat 2023-09-11 16:30:40 -07:00
parent dc3dfbf314
commit b609b0fa92
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ function adminEndpoints(app) {
const { workspaceId } = request.params;
const { userIds } = reqBody(request);
const { success, error } = await Workspace.updateUsers(
escape(Number(workspaceId)),
escape(workspaceId),
userIds
);
response.status(200).json({ success, error });

View File

@ -457,7 +457,7 @@ function apiAdminEndpoints(app) {
const { workspaceId } = request.params;
const { userIds } = reqBody(request);
const { success, error } = await Workspace.updateUsers(
escape(Number(workspaceId)),
escape(workspaceId),
userIds
);
response.status(200).json({ success, error });