diff --git a/server/models/workspace.js b/server/models/workspace.js index 501d5fb9..e59ac4d8 100644 --- a/server/models/workspace.js +++ b/server/models/workspace.js @@ -232,6 +232,7 @@ const Workspace = { const userInfo = usersById.map((user) => { const workspaceUser = users.find((u) => u.user_id === user.id); return { + userId: user.id, username: user.username, role: user.role, lastUpdatedAt: workspaceUser.lastUpdatedAt, diff --git a/server/swagger/openapi.json b/server/swagger/openapi.json index 2a1b5543..38e5ddc4 100644 --- a/server/swagger/openapi.json +++ b/server/swagger/openapi.json @@ -530,11 +530,15 @@ "users": [ { "userId": 1, - "role": "admin" + "username" : "user_1", + "role": "admin", + "lastUpdatedAt" : "2024-06-10T12:37:52.128Z" }, { "userId": 2, - "role": "member" + "username" : "user_2", + "role": "member", + "lastUpdatedAt" : "2024-06-12T19:10:07.529Z" } ] } @@ -2456,4 +2460,4 @@ "BearerAuth": [] } ] -} \ No newline at end of file +}