Skip to content

Commit c8c6e98

Browse files
committed
fix inabilty to assign music
1 parent 28b8536 commit c8c6e98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: api.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export function getAllPieces(slug) {
7070
export function mutateAssignPiece(slug) {
7171
return async (piecePlanId) => {
7272
const endpoint = `courses/${slug}/assign_piece_plan/`;
73-
const json = await makeRequest(endpoint, 'POST', { piece_id: piecePlanId });
73+
const json = await makeRequest(endpoint, 'POST', {
74+
piece_plan_id: piecePlanId,
75+
});
7476
return json;
7577
};
7678
}

0 commit comments

Comments
 (0)