Skip to content

Commit

Permalink
fixing ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
mligtenberg committed Feb 1, 2025
1 parent 08432e1 commit 209250c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
#popover
>
<sbb-duration-input
[formControl]="control.controls.value"/>
[formControl]="control.controls.value"
/>
</p-popover>
}

Expand Down
2 changes: 1 addition & 1 deletion libs/service-bus/clients/src/lib/message-receive-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class MessageReceiveClient {
partitionKey: message.partitionKey,
lockToken: message.lockToken,
scheduledEnqueueTimeUtc: message.scheduledEnqueueTimeUtc,
timeToLive: message.timeToLive ? Duration.fromObject({ minutes: message.timeToLive }).toISO() : undefined,
timeToLive: message.timeToLive ? Duration.fromObject({ milliseconds: message.timeToLive }).toISO() : undefined,
state: message.state,
lockedUntilUtc: message.lockedUntilUtc,
sequenceNumber: message.sequenceNumber?.toString(),
Expand Down
2 changes: 1 addition & 1 deletion libs/service-bus/clients/src/lib/message-send-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class MessageSendClient {

mapMessage(message: contracts.ServiceBusMessage): ServiceBusMessage {
const duration = message.timeToLive ? Duration.fromISO(message.timeToLive) : null;
const timeToLive = duration ? duration.as('minutes') : undefined;
const timeToLive = duration ? duration.as('milliseconds') : undefined;
const encoder = new TextEncoder();

return {
Expand Down

0 comments on commit 209250c

Please sign in to comment.