mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-20 16:17:32 -03:00
fix: no se usaba el fetch del framework
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { obtenerCantidadDeUsosdeHtag } from '@/hooks/obtenerCantidadDeUsosdeHtag.js';
|
||||
import { error } from '@sveltejs/kit';
|
||||
|
||||
export async function load({ params }) {
|
||||
export async function load({ params, fetch }) {
|
||||
let { htag } = params;
|
||||
|
||||
const posts = await obtenerCantidadDeUsosdeHtag(htag);
|
||||
const posts = await obtenerCantidadDeUsosdeHtag(htag, fetch);
|
||||
// if (cantidad == null || posts.lenght == 0) return error(404, 'no existe el #(hashtag)');
|
||||
return { htag, posts };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user