Minor type fix
This commit is contained in:
@@ -151,7 +151,7 @@ export async function getSearchSuggestions(search: string, fetchOptions?: Reques
|
||||
return await resp.json();
|
||||
}
|
||||
|
||||
export async function getHashtag(tag: string): Promise<Video> {
|
||||
export async function getHashtag(tag: string): Promise<{ results: Video[]; }> {
|
||||
const resp = await fetchErrorHandle(await fetch(buildPath(`hashtag/${tag}`)));
|
||||
return await resp.json();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { getHashtag } from '$lib/api';
|
||||
|
||||
export async function load({ params }) {
|
||||
console.log(params.slug);
|
||||
return {
|
||||
hashTagVideos: await getHashtag(params.slug)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user