Skip to content

Commit

Permalink
fix(jobs): do not restrict survey scheme migration to prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashroch committed Aug 29, 2024
1 parent f16f606 commit 673c1c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/api/src/jobs/survey-schemes/survey-schemes-sync.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Job } from 'bullmq';
import { literal, where } from 'sequelize';

import type { IoC } from '@intake24/api/ioc';
import { Condition, customPrompts, defaultAction, getConditionDefaults, portionSizePrompts, SinglePrompt, standardPrompts } from '@intake24/common/prompts';
Expand Down Expand Up @@ -145,7 +144,6 @@ export default class SurveySchemesSync extends BaseJob<'SurveySchemesSync'> {

const surveys = await this.models.system.Survey.findAll({
attributes: ['id', 'surveySchemeOverrides'],
where: where(literal(`json_array_length(survey_scheme_overrides::json->'prompts')`), '!=', 0),
order: [['id', 'ASC']],
});

Expand Down

0 comments on commit 673c1c0

Please sign in to comment.