mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
Adjust album/song types
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { api } from '../lib';
|
||||
import { AlbumsResponse, BasePaginationRequest } from './types';
|
||||
import { AlbumResponse, AlbumsResponse, BasePaginationRequest } from './types';
|
||||
|
||||
export interface AlbumsRequest extends BasePaginationRequest {
|
||||
orderBy: string;
|
||||
@@ -8,7 +8,7 @@ export interface AlbumsRequest extends BasePaginationRequest {
|
||||
}
|
||||
|
||||
const getAlbum = async (params: { id: number }, signal?: AbortSignal) => {
|
||||
const { data } = await api.get<AlbumsResponse>(`/albums/${params.id}`, {
|
||||
const { data } = await api.get<AlbumResponse>(`/albums/${params.id}`, {
|
||||
signal,
|
||||
});
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user