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' ;
3
2
4
3
import {
5
4
REQUIRED_PARAMS ,
@@ -117,9 +116,9 @@ const createReportController = (reportType) => {
117
116
118
117
// Apply version filter with special handling for 'ALL' case
119
118
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 ) ;
121
120
} else {
122
- // query = query.where('version', '==', 'ALL');
121
+ query = query . where ( 'version' , '==' , 'ALL' ) ;
123
122
}
124
123
125
124
// Apply date filters
Original file line number Diff line number Diff line change @@ -98,6 +98,13 @@ paths:
98
98
responses:
99
99
200:
100
100
description: String
101
+ /v1/versions:
102
+ get:
103
+ summary: versions
104
+ operationId: getVersions
105
+ responses:
106
+ 200:
107
+ description: String
101
108
/v1/audits:
102
109
get:
103
110
summary: audits
You can’t perform that action at this time.
0 commit comments