Skip to content

Commit

Permalink
fix: put the right name base on the context
Browse files Browse the repository at this point in the history
  • Loading branch information
barroro committed Feb 18, 2025
1 parent 6e9da0a commit 75570c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/api/playlists/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, vi, expect, beforeEach } from 'vitest';
import { NextApiRequest, NextApiResponse } from 'next';
import {
createSearchPlaylistHandler,
SearchArtistHandlerParams,
SearchPlaylistHandlerParams,
} from './search';
import { PlaylistsClientStub } from '@/lib/clients/playlists';
import { Playlist } from '@/lib/playlists';
Expand Down Expand Up @@ -32,7 +32,7 @@ describe('createSearchPlaylistHandler', () => {
}

function createHandler(
{ client, defaultLimit, maxLimit }: SearchArtistHandlerParams = {
{ client, defaultLimit, maxLimit }: SearchPlaylistHandlerParams = {
client: new PlaylistsClientStub(),
defaultLimit: 5,
maxLimit: 10,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/api/playlists/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PlaylistsClient, PlaylistsHTTPClient } from '@/lib/clients/playlists';
import { getToken } from 'next-auth/jwt';
import { BaseAuthHeaderBuilder } from '@/lib/clients/auth';

export type SearchArtistHandlerParams = {
export type SearchPlaylistHandlerParams = {
client: PlaylistsClient;
defaultLimit: number;
maxLimit: number;
Expand Down Expand Up @@ -47,7 +47,7 @@ export function createSearchPlaylistHandler({
client,
defaultLimit,
maxLimit,
}: SearchArtistHandlerParams) {
}: SearchPlaylistHandlerParams) {
return async function handler(
request: NextApiRequest,
response: NextApiResponse<ResponseData>
Expand Down

0 comments on commit 75570c8

Please sign in to comment.