fix enum values

This commit is contained in:
João Geonizeli
2022-07-21 22:47:05 -03:00
parent 7c241b5102
commit 0973148835
3 changed files with 32 additions and 32 deletions

View File

@@ -75,16 +75,16 @@ export const QuestionByCheckType: FC = () => {
const {loading, data} = useQuery<QuestionsByCheckTypeCountQuery>(
QuestionsByCheckTypeCount, {
variables: {
uniqueAnswer: {checkType: ['unique_answer'], ...where},
incompleteAffirmation: {checkType: ['incomplete_affirmation'], ...where},
multipleAnswer: {checkType: ['multiple_answer'], ...where},
negativeFocus: {checkType: ['negative_focus'], ...where},
assertionAndReason: {checkType: ['assertion_and_reason'], ...where},
gap: {checkType: ['gap'], ...where},
interpretation: {checkType: ['interpretation'], ...where},
association: {checkType: ['association'], ...where},
orderingOrRanking: {checkType: ['ordering_or_ranking'], ...where},
constantAlternatives: {checkType: ['constant_alternatives'], ...where},
uniqueAnswer: {checkType: ['UNIQUE_ANSWER'], ...where},
incompleteAffirmation: {checkType: ['INCOMPLETE_AFFIRMATION'], ...where},
multipleAnswer: {checkType: ['MULTIPLE_ANSWER'], ...where},
negativeFocus: {checkType: ['NEGATIVE_FOCUS'], ...where},
assertionAndReason: {checkType: ['ASSERTION_AND_REASON'], ...where},
gap: {checkType: ['GAP'], ...where},
interpretation: {checkType: ['INTERPRETATION'], ...where},
association: {checkType: ['ASSOCIATION'], ...where},
orderingOrRanking: {checkType: ['ORDERING_OR_RANKING'], ...where},
constantAlternatives: {checkType: ['CONSTANT_ALTERNATIVES'], ...where},
}
})

View File

@@ -40,9 +40,9 @@ export const QuestionsByDifficulty: FC = () => {
const {loading, data} = useQuery<QuestionsByDifficultyCountQuery>(
QuestionsByDifficultyCount, {
variables: {
easyWhere: {difficulty: ['easy'], ...where},
mediumWhere: {difficulty: ['medium'], ...where},
hardWhere: {difficulty: ['hard'], ...where},
easyWhere: {difficulty: ['EASY'], ...where},
mediumWhere: {difficulty: ['MEDIUM'], ...where},
hardWhere: {difficulty: ['HARD'], ...where},
},
})