Skip to content

Commit cc75544

Browse files
committed
it would help if I checked in the file
1 parent 5217d2f commit cc75544

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { enrollmentsApi } from "../../clients"
2+
3+
const enrollmentMutations = {
4+
destroyEnrollment: (id: number) => ({
5+
mutationFn: async (): Promise<void> => {
6+
return enrollmentsApi.enrollmentsDestroy({ id }).then((res) => res.data)
7+
},
8+
}),
9+
}
10+
11+
export { enrollmentMutations }

0 commit comments

Comments
 (0)