We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3c9ac commit d101ee7Copy full SHA for d101ee7
apps/webapp/app/v3/eventRepository.server.ts
@@ -334,14 +334,14 @@ export class EventRepository {
334
}
335
336
async queryEvents(queryOptions: QueryOptions): Promise<TaskEventRecord[]> {
337
- return await this.db.taskEvent.findMany({
+ return await this.readReplica.taskEvent.findMany({
338
where: queryOptions,
339
});
340
341
342
async queryIncompleteEvents(queryOptions: QueryOptions) {
343
// First we will find all the events that match the query options (selecting minimal data).
344
- const taskEvents = await this.db.taskEvent.findMany({
+ const taskEvents = await this.readReplica.taskEvent.findMany({
345
346
select: {
347
spanId: true,
0 commit comments