mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix authentication query for Subsonic/ND
This commit is contained in:
@@ -1477,7 +1477,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
|
||||
const res = await ssApiClient(apiClientProps).getUser({
|
||||
query: {
|
||||
username: query.id,
|
||||
username: query.username,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ export const useServerAuthenticated = () => {
|
||||
},
|
||||
query: {
|
||||
id: userId,
|
||||
username: serverWithAuth.username,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -1514,6 +1514,7 @@ export type UserInfoArgs = BaseEndpointArgs & { query: UserInfoQuery };
|
||||
|
||||
export type UserInfoQuery = {
|
||||
id: string;
|
||||
username: string;
|
||||
};
|
||||
|
||||
export type UserInfoResponse = {
|
||||
|
||||
Reference in New Issue
Block a user