🔧 Removed indirection for getBundles

This commit is contained in:
2024-10-23 13:42:05 -04:00
parent 68c2dacff4
commit baa5a99855
2 changed files with 13 additions and 22 deletions

View File

@@ -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",