mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-16 08:24:16 +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({
|
const res = await ssApiClient(apiClientProps).getUser({
|
||||||
query: {
|
query: {
|
||||||
username: query.id,
|
username: query.username,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export const useServerAuthenticated = () => {
|
|||||||
},
|
},
|
||||||
query: {
|
query: {
|
||||||
id: userId,
|
id: userId,
|
||||||
|
username: serverWithAuth.username,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1514,6 +1514,7 @@ export type UserInfoArgs = BaseEndpointArgs & { query: UserInfoQuery };
|
|||||||
|
|
||||||
export type UserInfoQuery = {
|
export type UserInfoQuery = {
|
||||||
id: string;
|
id: string;
|
||||||
|
username: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserInfoResponse = {
|
export type UserInfoResponse = {
|
||||||
|
|||||||
Reference in New Issue
Block a user