From 5845d0e55227d2436ae143644eee868ed4f3ecfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 31 May 2024 14:52:15 +0200 Subject: [PATCH] chore: make ip mandatory (#7220) IP should be mandatory for storing events. Automated events should use 127.0.0.1 --- src/lib/types/events.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/types/events.ts b/src/lib/types/events.ts index f6591a0b61..d0dcf44aa8 100644 --- a/src/lib/types/events.ts +++ b/src/lib/types/events.ts @@ -349,9 +349,7 @@ export const IEventTypes = [ ] as const; export type IEventType = (typeof IEventTypes)[number]; -/** - * This type should only be used in the store layer but deprecated elsewhere - */ +// this rerpresents the write model for events export interface IBaseEvent { type: IEventType; createdBy: string; @@ -359,7 +357,7 @@ export interface IBaseEvent { project?: string; environment?: string; featureName?: string; - ip?: string; + ip: string; data?: any; preData?: any; tags?: ITag[];