mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
remove duplicated Number cast
This commit is contained in:
parent
dc3dfbf314
commit
b609b0fa92
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue