Skip to content

Commit 747785d

Browse files
Fix: fetch_document_details_by_form_id.sql
1 parent 3d309c3 commit 747785d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql_queries/fetch_document_details_by_form_id.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const query = `
176176
LEFT JOIN form_lands ON form_lands.form_id = forms.id
177177
LEFT JOIN farm_pond_details ON farm_pond_details.form_id = forms.id
178178
LEFT JOIN plantation_details ON plantation_details.form_id = forms.id
179-
WHERE forms.user_id = ?;
179+
WHERE forms.id = ?;
180180
`;
181181

182182
// Execute the query using MySQL2's query method

0 commit comments

Comments
 (0)