Fix sync-ldap-users() bug, brought by: 666ff48837

This commit is contained in:
Yang Luo 2023-07-29 13:14:55 +08:00
parent 6c628d7893
commit 74b058aa3f

View File

@ -77,8 +77,8 @@ export function getLdapUser(owner, name) {
}).then(res => res.json());
}
export function syncUsers(owner, ldapId, body) {
return fetch(`${Setting.ServerUrl}/api/sync-ldap-users?owner=${owner}&ldapId=${ldapId}`, {
export function syncUsers(owner, name, body) {
return fetch(`${Setting.ServerUrl}/api/sync-ldap-users?id=${owner}/${encodeURIComponent(name)}`, {
method: "POST",
credentials: "include",
body: JSON.stringify(body),