Skip to content

Commit

Permalink
Fix “is not a function” error in nextjs-start
Browse files Browse the repository at this point in the history
  • Loading branch information
ina-amagami committed Dec 20, 2024
1 parent 41b0a4d commit f805765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextjs-start/src/lib/firebase/firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function getRestaurants(db = db, filters = {}) {
}

export function getRestaurantsSnapshot(cb, filters = {}) {
return;
return () => {};
}

export async function getRestaurantById(db, restaurantId) {
Expand All @@ -67,7 +67,7 @@ export async function getRestaurantById(db, restaurantId) {
}

export function getRestaurantSnapshotById(restaurantId, cb) {
return;
return () => {};
}

export async function getReviewsByRestaurantId(db, restaurantId) {
Expand Down

0 comments on commit f805765

Please sign in to comment.