feat: Implement video play count tracking, refactor user update API, add missing CMS delete functions, and update database transaction handling.
This commit is contained in:
1 parent
2dffbd8b71
commit
42976236b3
11 files changed
+138
-39
No files matched your search
@@ -34,7 +34,7 @@ export default function UsersPage() {
|
||||
|
||||
const handleUpdateUser = async (userId: string, role: string, orgId: string) => {
|
||||
try {
|
||||
await cmsApi.updateUser(userId, role, orgId);
|
||||
await cmsApi.updateUser(userId, { role, organization_id: orgId });
|
||||
loadData();
|
||||
} catch (error) {
|
||||
console.error('Failed to update user', error);
|
||||
|
||||
Reference in new issue
Block a user