Skip to content

Commit

Permalink
fix(forms): Complete answer filter
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboG-11 authored and Brayan-724 committed Oct 9, 2024
1 parent b879e25 commit 21c4b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/(dashboard)/forms/[slug]/answers/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PageServerLoad } from './$types';
import { loadSessionsFromDB, sessions } from '$lib/forms/service/stores/sessions';
import { sessions } from '$lib/forms/service/stores/sessions';

export const load: PageServerLoad = async ({ platform, params, parent }) => {
const formId = +params.slug;
Expand All @@ -9,7 +9,7 @@ export const load: PageServerLoad = async ({ platform, params, parent }) => {
const query = `
SELECT
s.*,
(s.token ISNULL AND a.question_id = ?) as completed,
(s.token ISNULL OR a.question_id = ?) as completed,
e.external_id as e_external_id,
e.kind as e_kind,
e.email as e_email,
Expand Down

0 comments on commit 21c4b8f

Please sign in to comment.