Skip to content

Commit

Permalink
fix: use mocked time to solve happo diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepehr-Sobhani committed Aug 8, 2022
1 parent e49710f commit d17e1f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions schema/data/dev/005_cif_reporting_requirement.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ do $$
update cif.form_change set new_form_data =
json_build_object(
'projectId', temp_row.form_data_record_id,
'reportDueDate', now(),
'submittedDate', now(),
'reportDueDate', '2022-08-05',
'submittedDate', '2022-08-05',
'reportType', 'General Milestone',
'reportingRequirementIndex', 1,
'description', 'general milestone report description ' || temp_row.form_data_record_id
Expand All @@ -27,7 +27,7 @@ do $$
json_build_object(
'certifierProfessionalDesignation', 'Professional Engineer',
'reportingRequirementId', temp_row.form_data_record_id,
'substantialCompletionDate', now(),
'substantialCompletionDate', '2022-08-05',
'maximumAmount', 1,
'totalEligibleExpenses', 1,
'certifiedBy', 'Elliot Page'
Expand All @@ -40,7 +40,7 @@ do $$
'reportingRequirementId', temp_row.form_data_record_id,
'adjustedGrossAmount', 1,
'adjustedNetAmount', 1,
'dateSentToCsnr', now()
'dateSentToCsnr', '2022-08-05'
)
where form_data_table_name = 'payment' and project_revision_id = temp_row.project_revision_id;

Expand All @@ -62,8 +62,8 @@ do $$
(
json_build_object(

'reportDueDate', now(),
'submittedDate', now(),
'reportDueDate', '2022-08-05',
'submittedDate', '2022-08-05',
'comments','annual report comments ' || temp_row.id,
'projectId', (select form_data_record_id
from cif.form_change
Expand Down Expand Up @@ -92,8 +92,8 @@ for temp_row in select id, project_id from cif.project_revision loop
(
json_build_object(

'reportDueDate', now(),
'submittedDate', now(),
'reportDueDate', '2022-08-05',
'submittedDate', '2022-08-05',
'comments','quarterly report comments ' || temp_row.id,
'projectId', (select form_data_record_id
from cif.form_change
Expand Down

0 comments on commit d17e1f4

Please sign in to comment.