Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Return async function from getStudentAssignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamv27 committed Apr 22, 2024
1 parent 0790976 commit ef45fd9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ export async function getEnrollments() {
}


export async function getStudentAssignments(slug) {
const url = `courses/${slug}/assignments/`;
const json = await makeRequest(url);
return json
export function getStudentAssignments(slug) {
return async () => {
const url = `courses/${slug}/assignments/`;
const json = await makeRequest(url);
return json
}
}

export function getAllPieces(courseSlug) {
Expand Down

0 comments on commit ef45fd9

Please sign in to comment.