```
export async function getAllEvents(): Promise<SelectEvent[]> {
const allEvents = await db.select().from(events).all();
console.log("Fetched events:", allEvents);
return allEvents;
}
```
I'm trying to get all events from turso DB, there are 3 in the DB, but I'm only getting the first db returned.
This is a NextJS application and I don't know what's going on here.
2 Replies