progress on subsonic api

This commit is contained in:
jeffvli
2025-07-21 00:08:58 -07:00
parent 96221c8fa7
commit 98e8bda45d
94 changed files with 3083 additions and 798 deletions
+2 -4
View File
@@ -73,7 +73,7 @@ function createLoggedFunction<TRequest, TResponse>(
return undefined;
}
return async (request: TRequest, server: ServerListItem, options?: any) => {
return async (request: TRequest, requestOptions?: any) => {
const startTime = Date.now();
const requestId = Math.random().toString(36).substring(2, 15);
@@ -96,13 +96,11 @@ function createLoggedFunction<TRequest, TResponse>(
logger.info(`[API] ${functionName} called`, {
request: truncatedRequest,
requestId,
serverId: server.id,
serverType: server.type,
});
}
try {
const result = await originalFn(request, server, options);
const result = await originalFn(request, requestOptions);
const duration = Date.now() - startTime;
if (result[0]) {