revalidate removed from video_id request

This commit is contained in:
Kakabay 2024-09-12 15:50:14 +05:00
parent b5e0891301
commit 817b1da34d
1 changed files with 3 additions and 3 deletions

View File

@ -73,9 +73,9 @@ export class Queries {
} }
public static async getVideo(id: number): Promise<VideoModel> { public static async getVideo(id: number): Promise<VideoModel> {
return await fetch(`${baseUrl.MATERIALS_SRC}${routes.video(id)}`, { return await fetch(`${baseUrl.MATERIALS_SRC}${routes.video(id)}`).then((res) =>
next: { revalidate: 3600 }, res.json().then((res) => res as VideoModel),
}).then((res) => res.json().then((res) => res as VideoModel)); );
} }
public static async getPage(id: string): Promise<PageItemModel> { public static async getPage(id: string): Promise<PageItemModel> {