Skip to content

Commit

Permalink
fix: backend issues with dry trip function
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaisaact committed Nov 22, 2024
1 parent dd19bd9 commit cfeb646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/trip-service/db-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import reshapeTripData from '../../utils/reshape-trip-data-drizzle';
export const fetchTripsFromDB = (userId: string, tripId?: string) =>
executeDbOperation(
async () => {
const whereConditions = [eq(trips.userId, userId)];
const whereConditions = [];
whereConditions.push(eq(trips.userId, userId));

if (tripId) {
const parsedTripId = parseInt(tripId, 10);
Expand Down

0 comments on commit cfeb646

Please sign in to comment.