fix: user changes
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { useMutation, useQuery } from '@tanstack/vue-query'
|
||||
import {
|
||||
apiShowStudentExam,
|
||||
apiStartStudentExamAttempt,
|
||||
apiSubmitStudentExamAttempt,
|
||||
} from '@/services/api/student-exams'
|
||||
import { apiShowStudentExam, apiSubmitStudentExamAttempt } from '@/services/api/student-exams'
|
||||
|
||||
export const studentExamsKeys = {
|
||||
detail: (id) => ['student', 'exams', 'detail', id],
|
||||
@@ -17,9 +13,6 @@ export const useStudentExamQuery = (idRef, options = {}) =>
|
||||
...options,
|
||||
})
|
||||
|
||||
export const useStartStudentExamAttemptMutation = () =>
|
||||
useMutation({ mutationFn: ({ id }) => apiStartStudentExamAttempt(id) })
|
||||
|
||||
export const useSubmitStudentExamAttemptMutation = () =>
|
||||
useMutation({
|
||||
mutationFn: ({ id, payload }) => apiSubmitStudentExamAttempt(id, payload),
|
||||
|
||||
Reference in New Issue
Block a user