@@ -83,7 +83,7 @@ const getManyByChannelBySeasonQuerySchema = Joi.object({
8383 page : Joi . number ( ) . integer ( ) . min ( 1 ) . required ( )
8484} ) ;
8585
86- const getManyByChannelBySeasonShuffleQuerySchema = Joi . object ( {
86+ const getManyByChannelShuffleQuerySchema = Joi . object ( {
8787 page : Joi . number ( ) . integer ( ) . min ( 1 ) . required ( ) ,
8888 shuffleHash : Joi . string ( ) . required ( )
8989} ) ;
@@ -571,9 +571,9 @@ export class ItemController {
571571 } ) ;
572572 }
573573
574- static async getManyByChannelBySeasonShuffle ( req : Request , res : Response ) : Promise < void > {
574+ static async getManyByChannelShuffle ( req : Request , res : Response ) : Promise < void > {
575575 validateParamsObject ( getManyByChannelParmsSchema , req , res , async ( ) => {
576- validateQueryObject ( getManyByChannelBySeasonShuffleQuerySchema , req , res , async ( ) => {
576+ validateQueryObject ( getManyByChannelShuffleQuerySchema , req , res , async ( ) => {
577577 try {
578578 const { page, limit, offset } = getPaginationParams ( req ) ;
579579 const { channelIdOrIdText } = req . params ;
@@ -593,7 +593,7 @@ export class ItemController {
593593 skip : offset ,
594594 take : limit
595595 } ;
596- const items = await ItemController . itemService . getManyByChannelBySeason ( channel , "shuffle" , config , shuffleHash ) ;
596+ const items = await ItemController . itemService . getManyByChannelShuffle ( channel , shuffleHash , config ) ;
597597
598598 res . json ( { data : items , meta : { page, count : channel . channel_about . episode_count , limit } } ) ;
599599 } catch ( error ) {
0 commit comments