Skip to content

Commit f5dfabf

Browse files
authored
Fix incorrect schema ID annotation in Schema.lessThanOrEqualToDate, closes #5212 (#5213)
1 parent d0108cf commit f5dfabf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/dry-bushes-dig.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"effect": patch
3+
---
4+
5+
Fix incorrect schema ID annotation in `Schema.lessThanOrEqualToDate`, closes #5212

packages/effect/src/Schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6670,8 +6670,8 @@ export const lessThanOrEqualToDate = <S extends Schema.Any>(
66706670
<A extends Date>(self: S & Schema<A, Schema.Encoded<S>, Schema.Context<S>>): filter<S> =>
66716671
self.pipe(
66726672
filter((a: Date) => a <= max, {
6673-
schemaId: LessThanDateSchemaId,
6674-
[LessThanDateSchemaId]: { max },
6673+
schemaId: LessThanOrEqualToDateSchemaId,
6674+
[LessThanOrEqualToDateSchemaId]: { max },
66756675
title: `lessThanOrEqualToDate(${util_.formatDate(max)})`,
66766676
description: `a date before or equal to ${util_.formatDate(max)}`,
66776677
...annotations

0 commit comments

Comments
 (0)