[FIX] CSV export would get members instead of contacts

This commit is contained in:
William Bouzourène 2025-04-28 09:59:45 +02:00
parent 00b7c4b371
commit d37958fc37
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww

View file

@ -153,7 +153,7 @@ func ContactsExport(c *fiber.Ctx) error {
}
params.PageSize = 0
params.PersonType = "members"
params.PersonType = "contacts"
var sections []models.Section
db.Order("name collate nocase asc").Find(&sections, "contains_members = ? AND id IN ?", true, allowedSections)