mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-16 11:20:10 +01:00
remove duplicated Number cast
This commit is contained in:
parent
dc3dfbf314
commit
b609b0fa92
@ -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 });
|
||||
|
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user