fix: acitivity name bug

This commit is contained in:
swve 2024-01-14 12:04:59 +01:00
parent 98d2d7cf83
commit cf7cb0f35e
2 changed files with 4 additions and 3 deletions

View file

@ -63,8 +63,8 @@ export async function getActivityWithAuthHeader(activity_uuid: any, next: any, a
return res;
}
export async function updateActivity(data: any, activity_id: any) {
const result = await fetch(`${getAPIUrl()}activities/${activity_id}`, RequestBody("PUT", data, null));
export async function updateActivity(data: any, activity_uuid: string) {
const result = await fetch(`${getAPIUrl()}activities/${activity_uuid}`, RequestBody("PUT", data, null));
const res = await result.json();
return res;
}