Skip to content

Commit

Permalink
fix: don't send expiration data to buff (cameri#207)
Browse files Browse the repository at this point in the history
* fix: remove code casting string to buffer
  • Loading branch information
antonleviathan authored and brandonrobinson5060 committed Feb 22, 2023
1 parent d5d86fc commit 0d5a5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/repositories/event-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ export class EventRepository implements IEventRepository {
remote_address: path([ContextMetadataKey as any, 'remoteAddress', 'address']),
expires_at: ifElse(
propSatisfies(is(Number), EventExpirationTimeMetadataKey),
pipe(prop(EventExpirationTimeMetadataKey as any), toBuffer),
prop(EventExpirationTimeMetadataKey as any),
always(null),
),

})(event)

return this.masterDbClient('events')
Expand Down Expand Up @@ -222,7 +222,7 @@ export class EventRepository implements IEventRepository {
remote_address: path([ContextMetadataKey as any, 'remoteAddress', 'address']),
expires_at: ifElse(
propSatisfies(is(Number), EventExpirationTimeMetadataKey),
pipe(prop(EventExpirationTimeMetadataKey as any), toBuffer),
prop(EventExpirationTimeMetadataKey as any),
always(null),
),
})(event)
Expand Down

0 comments on commit 0d5a5bf

Please sign in to comment.