feat: add jwennAnVedette
Déploiement FRONT PROD / check (push) Successful in 2m2s
Déploiement FRONT PROD / deploy (push) Successful in 20s

This commit is contained in:
2026-06-17 08:51:06 +04:00
parent a89196909e
commit ed819e3537
2 changed files with 22 additions and 3 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import Box from '@mui/material/Box'
import Container from '@mui/material/Container'
import {notFound} from 'next/navigation'
import {jwennStats, jwennDenyeTeks} from '../lib/oki-api'
import {jwennStats, jwennDenyeTeks, jwennAnVedette} from '../lib/oki-api'
import Statistik from '../components/akey/statistik'
import Akey from '../components/akey'
@@ -12,13 +12,13 @@ import Footer from '../components/footer'
import Aso from '../components/akey/aso'
async function jwennDone() {
const [statistik, denyeTeks] = await Promise.all([jwennStats(), jwennDenyeTeks()])
const [statistik, denyeTeks, anVedette] = await Promise.all([jwennStats(), jwennDenyeTeks(), jwennAnVedette()])
if (!statistik) {
notFound()
}
return {statistik, dernierTeks: denyeTeks?.[0]}
return {statistik, dernierTeks: anVedette ?? denyeTeks?.[0]}
}
export default async function Page() {