Skip to content

Commit

Permalink
Merge pull request #353 from LindirQuenya/fix/playlist-broadcast
Browse files Browse the repository at this point in the history
Fix arguments of playlist broadcast wrapper return function.
  • Loading branch information
LindirQuenya authored Jun 30, 2022
2 parents 6505fef + bc2bead commit 9b72085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/back/extensions/ApiImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function createApiFactory(extId: string, extManifest: IExtensionManifest,
function broadcastPlaylistWrapper<T, R>(cb: (arg: T) => Promise<R>): (args: T) => Promise<R>;
function broadcastPlaylistWrapper<T, T2, R>(cb: (arg: T, arg2: T2) => Promise<R>): (arg: T, arg2: T2) => Promise<R>;
function broadcastPlaylistWrapper<R>(cb: (...args: any[]) => Promise<R>): (args: any[]) => Promise<R> {
return async (args: any[]) => {
return async (...args: any[]) => {
return cb(...args)
.then(async (r) => {
state.socketServer.broadcast(BackOut.PLAYLISTS_CHANGE, await GameManager.findPlaylists(state.preferences.browsePageShowExtreme));
Expand Down

0 comments on commit 9b72085

Please sign in to comment.