File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1- import { firestoreOld } from '../utils/db.js' ;
2- const firestore = firestoreOld ;
1+ import { firestore } from '../utils/db.js' ;
32
43import {
54 REQUIRED_PARAMS ,
@@ -117,9 +116,9 @@ const createReportController = (reportType) => {
117116
118117 // Apply version filter with special handling for 'ALL' case
119118 if ( params . version && techArray . length === 1 ) {
120- // query = query.where('version', '==', params.version); // TODO: Uncomment when migrating to a new data schema
119+ query = query . where ( 'version' , '==' , params . version ) ;
121120 } else {
122- // query = query.where('version', '==', 'ALL');
121+ query = query . where ( 'version' , '==' , 'ALL' ) ;
123122 }
124123
125124 // Apply date filters
Original file line number Diff line number Diff line change @@ -98,6 +98,13 @@ paths:
9898 responses:
9999 200:
100100 description: String
101+ /v1/versions:
102+ get:
103+ summary: versions
104+ operationId: getVersions
105+ responses:
106+ 200:
107+ description: String
101108 /v1/audits:
102109 get:
103110 summary: audits
You can’t perform that action at this time.
0 commit comments