Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix(sqs): use correct return type
Browse files Browse the repository at this point in the history
  • Loading branch information
MickVanDuijn committed Jan 2, 2024
1 parent 26b4528 commit 8dfdc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/event-horizon/sqs/sqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function sqsEvent<Configuration, Service, Profile, Payload, MessageGroupi
definition: SQSHandler<Configuration, Service, Profile, Payload, MessageGrouping>
): Dependent<SQSPayload<MessageGrouping, Payload>> {
const { sqs } = definition
if (sqs.messageGrouping !== undefined) {
if (sqs.messageGrouping === undefined) {
return object({
messageGroupId: alphaNumeric({ minLength: 1 }),
payload: sqs.schema.payload !== undefined ? arbitrary(sqs.schema.payload) : unknown(),
Expand Down

0 comments on commit 8dfdc6d

Please sign in to comment.