@@ -28,7 +28,7 @@ import {
2828 toPairs ,
2929} from 'ramda'
3030
31- import { ContextMetadataKey , EventDeduplicationMetadataKey , EventDelegatorMetadataKey , EventExpirationTimeMetadataKey } from '../constants/base'
31+ import { ContextMetadataKey , EventDeduplicationMetadataKey , EventExpirationTimeMetadataKey } from '../constants/base'
3232import { DatabaseClient , EventId } from '../@types/base'
3333import { DBEvent , Event } from '../@types/event'
3434import { IEventRepository , IQueryResult } from '../@types/repositories'
@@ -105,7 +105,7 @@ export class EventRepository implements IEventRepository {
105105 ] ) ( currentFilter [ filterName ] as string [ ] )
106106 } )
107107 } ) ( {
108- authors : [ 'event_pubkey' , 'event_delegator' ] ,
108+ authors : [ 'event_pubkey' ] ,
109109 ids : [ 'event_id' ] ,
110110 } )
111111
@@ -180,11 +180,6 @@ export class EventRepository implements IEventRepository {
180180 event_tags : pipe ( prop ( 'tags' ) , toJSON ) ,
181181 event_content : prop ( 'content' ) ,
182182 event_signature : pipe ( prop ( 'sig' ) , toBuffer ) ,
183- event_delegator : ifElse (
184- propSatisfies ( is ( String ) , EventDelegatorMetadataKey ) ,
185- pipe ( prop ( EventDelegatorMetadataKey as any ) , toBuffer ) ,
186- always ( null ) ,
187- ) ,
188183 remote_address : path ( [ ContextMetadataKey as any , 'remoteAddress' , 'address' ] ) ,
189184 expires_at : ifElse (
190185 propSatisfies ( is ( Number ) , EventExpirationTimeMetadataKey ) ,
@@ -212,11 +207,6 @@ export class EventRepository implements IEventRepository {
212207 event_tags : pipe ( prop ( 'tags' ) , toJSON ) ,
213208 event_content : prop ( 'content' ) ,
214209 event_signature : pipe ( prop ( 'sig' ) , toBuffer ) ,
215- event_delegator : ifElse (
216- propSatisfies ( is ( String ) , EventDelegatorMetadataKey ) ,
217- pipe ( prop ( EventDelegatorMetadataKey as any ) , toBuffer ) ,
218- always ( null ) ,
219- ) ,
220210 event_deduplication : ifElse (
221211 propSatisfies ( isNil , EventDeduplicationMetadataKey ) ,
222212 pipe ( paths ( [ [ 'pubkey' ] , [ 'kind' ] ] ) , toJSON ) ,
0 commit comments