fix: update permissions structure for secretary API interactions
This commit is contained in:
@@ -198,7 +198,7 @@ export default function MySecretariesPage() {
|
||||
|
||||
const updatePermsMutation = useMutation({
|
||||
mutationFn: ({ uuid, permissions }: { uuid: string; permissions: SecretaryPermissions }) =>
|
||||
api.patch(`/api/v1/secretary/${uuid}`, { permissions }),
|
||||
api.patch(`/api/v1/secretary/${uuid}`, { permissions: { version: 1, resources: permissions } }),
|
||||
onSuccess: () => {
|
||||
toast.success('دسترسیها بروزرسانی شد');
|
||||
setEditTarget(null);
|
||||
|
||||
Reference in New Issue
Block a user