1
0
mirror of https://github.com/Fayorg/calendrier-avant.git synced 2026-05-28 01:28:37 +02:00

fix: refactored server functions names

This commit is contained in:
2023-12-20 14:44:36 +01:00
parent 7c89ca8338
commit 771d9a8637
7 changed files with 13 additions and 29 deletions

View File

@@ -3,7 +3,7 @@ import { Chart } from '@components/custom/chart';
import logo from '@images/logo.svg';
import Image from 'next/image';
import ginger from '@images/ginger.png';
import { getResults, getTeacherResult, Results } from '@/actions/results';
import { getStudentResults, getTeacherResult, Results } from '@/actions/results';
import { useEffect, useState } from 'react';
export default function Page({ params }: { params: { id: string } }) {
@@ -17,7 +17,7 @@ export default function Page({ params }: { params: { id: string } }) {
.then((res) => setTeacherGrade(res?.grade || 0))
.catch((err) => console.error(err));
getResults(testId)
getStudentResults(testId)
.then((res) => setData(res))
.catch((err) => console.error(err));
}