mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-13 00:49:04 +00:00
KlipyTrendingResponse -> KlipyGifsResponse
This commit is contained in:
@@ -63,7 +63,7 @@ export default class KlipyGifProvider implements IGifProvider {
|
||||
});
|
||||
|
||||
if (!response.ok) console.log(response, await response.text());
|
||||
const responseData = (await response.json()) as KlipyTrendingResponse;
|
||||
const responseData = (await response.json()) as KlipyGifsResponse;
|
||||
return responseData.data.data.map(this.convertGifResult);
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ export default class KlipyGifProvider implements IGifProvider {
|
||||
});
|
||||
|
||||
if (!response.ok) console.log(response, await response.text());
|
||||
const responseData = (await response.json()) as KlipyTrendingResponse;
|
||||
const responseData = (await response.json()) as KlipyGifsResponse;
|
||||
return responseData.data.data.map(this.convertGifResult);
|
||||
});
|
||||
}
|
||||
@@ -130,7 +130,7 @@ interface KlipyCategory {
|
||||
preview_url: string;
|
||||
}
|
||||
|
||||
interface KlipyTrendingResponse {
|
||||
interface KlipyGifsResponse {
|
||||
result: boolean;
|
||||
data: { current_page: number; per_page: number; has_next: boolean; data: KlipyMediaItem[] };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user