mirror of
https://github.com/System-End/site.git
synced 2026-04-19 23:22:49 +00:00
Fix active cohort lookup if user isn't the first voter
This commit is contained in:
parent
b6149defb8
commit
8a50b68844
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ async function getCohortFromAuth(authToken) {
|
|||
})
|
||||
const cohorts = await airtable.read({
|
||||
filterByFormula: `AND(
|
||||
FIND("${safeAuthToken}", {Allowed Voter Keys}) > 0,
|
||||
FIND("${safeAuthToken}", ARRAYJOIN({Allowed Voter Keys})) > 0,
|
||||
{Is Active} = TRUE()
|
||||
)`,
|
||||
maxRecords: 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue