revalidate removed from video_id request
This commit is contained in:
parent
b5e0891301
commit
817b1da34d
|
|
@ -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> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue