1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: make ip mandatory (#7220)

IP should be mandatory for storing events. Automated events should use
127.0.0.1
This commit is contained in:
Gastón Fournier 2024-05-31 14:52:15 +02:00 committed by GitHub
parent 5eadce061c
commit 5845d0e552
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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[];