mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
fix: don't send expiration data to buff (#207)
* fix: remove code casting string to buffer
This commit is contained in:
parent
b9a13c8868
commit
7533288370
@ -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')
|
||||
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user