Skip to content

Commit

Permalink
Update ride queries to use 'system_status' instead of 'status' for co…
Browse files Browse the repository at this point in the history
…nsistency
  • Loading branch information
joao-vasconcelos committed Feb 5, 2025
1 parent 8a77032 commit 47401aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/sync-metrics/src/tasks/videowall-delays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const videowallDelays = async () => {
// (start_time_observed !== null) and that have already been processed.

const ridesCollection = await rides.getCollection();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, status: 'complete' }).stream();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, system_status: 'complete' }).stream();

//
// Iterate on all rides for today
Expand Down
2 changes: 1 addition & 1 deletion apps/sync-metrics/src/tasks/videowall-empty-rides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const videowallEmptyRides = async () => {
// Get all rides for today

const ridesCollection = await rides.getCollection();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, status: 'complete' }).stream();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, system_status: 'complete' }).stream();

//
// Iterate on all rides for today
Expand Down
2 changes: 1 addition & 1 deletion apps/sync-metrics/src/tasks/videowall-sla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const videowallSla = async () => {
// Get all rides for today

const ridesCollection = await rides.getCollection();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, status: 'complete' }).stream();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, system_status: 'complete' }).stream();

//
// Iterate on all rides for today
Expand Down
2 changes: 1 addition & 1 deletion apps/sync-metrics/src/tasks/videowall-vkm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const videowallVkm = async () => {
// Get all rides for today

const ridesCollection = await rides.getCollection();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, status: 'complete' }).stream();
const allRidesForTodayStream = ridesCollection.find({ operational_date: operationalDate, system_status: 'complete' }).stream();

//
// Iterate on all rides for today
Expand Down

0 comments on commit 47401aa

Please sign in to comment.