mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
#200 disable cache query for posts
This commit is contained in:
parent
ce59f48779
commit
1299bf77a8
1 changed files with 6 additions and 1 deletions
|
@ -79,7 +79,12 @@ export async function getTopPackages(): Promise<GUIPackage[]> {
|
|||
|
||||
export async function getAllPosts(tag?: string): Promise<AirtablePost[]> {
|
||||
// add filter here someday: tag = news | course
|
||||
const posts = await apiGet<AirtablePost[]>('posts', tag ? { tag } : {});
|
||||
const queryParams = {
|
||||
...(tag ? { tag } : {}),
|
||||
nocache: 'true'
|
||||
};
|
||||
const posts = await apiGet<AirtablePost[]>('posts', queryParams);
|
||||
console.log(posts);
|
||||
return posts;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue