Skip to content

Commit e353738

Browse files
committed
Make startCreatedAt required in task event store
1 parent b734ee2 commit e353738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/webapp/app/v3/taskEventStore.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ export class TaskEventStore {
7272
async findMany<TSelect extends Prisma.TaskEventSelect>(
7373
table: TaskEventStoreTable,
7474
where: Prisma.TaskEventWhereInput,
75-
startCreatedAt?: Date,
75+
startCreatedAt: Date,
7676
endCreatedAt?: Date,
7777
select?: TSelect,
7878
orderBy?: Prisma.TaskEventOrderByWithRelationInput
7979
): Promise<Prisma.TaskEventGetPayload<{ select: TSelect }>[]> {
8080
let finalWhere: Prisma.TaskEventWhereInput = where;
8181

82-
if (table === "taskEventPartitioned" && startCreatedAt) {
82+
if (table === "taskEventPartitioned") {
8383
// Add 1 minute to endCreatedAt to make sure we include all events in the range.
8484
const end = endCreatedAt
8585
? new Date(endCreatedAt.getTime() + env.TASK_EVENT_PARTITIONED_WINDOW_IN_SECONDS * 1000)

0 commit comments

Comments
 (0)