fix incorrect savedguilds as an admin
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

results for all users are returned when acting as an administrator, this is fine, but client-side filtering needs to be implemented, so these results don't muddy the UI
This commit is contained in:
Corban-Lee Jones 2024-09-18 22:31:16 +01:00
parent 71b9b2f437
commit 73d72ce21e

View File

@ -34,8 +34,8 @@ function makeQuerystring(filters, sort) {
// Saved Guilds
async function getSavedGuilds() {
return await ajaxRequest("/api/saved-guilds/", "GET");
async function getSavedGuilds(userId) {
return await ajaxRequest(`/api/saved-guilds/?added_by=${userId}`, "GET");
}
async function getSavedGuild(id) {