🔧 Removed indirection for getBundles
This commit is contained in:
@@ -104,18 +104,7 @@ export default class SocketService extends Service {
|
||||
// {}
|
||||
// );
|
||||
},
|
||||
// AirDCPP Socket actions
|
||||
// the way this method is called has some unnecessary indirection
|
||||
getBundles: {
|
||||
rest: "GET /getBundles",
|
||||
handler: async (ctx: Context<{ config: any; bundleId: string }>) => {
|
||||
const { config, bundleId } = ctx.params;
|
||||
console.log(config);
|
||||
const ADCPPSocket = new AirDCPPSocket(config);
|
||||
|
||||
return await ADCPPSocket.get(`queue/bundles/${bundleId}`);
|
||||
},
|
||||
},
|
||||
search: {
|
||||
params: {
|
||||
query: "object",
|
||||
|
||||
Reference in New Issue
Block a user