mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +02: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:
parent
5eadce061c
commit
5845d0e552
@ -349,9 +349,7 @@ export const IEventTypes = [
|
|||||||
] as const;
|
] as const;
|
||||||
export type IEventType = (typeof IEventTypes)[number];
|
export type IEventType = (typeof IEventTypes)[number];
|
||||||
|
|
||||||
/**
|
// this rerpresents the write model for events
|
||||||
* This type should only be used in the store layer but deprecated elsewhere
|
|
||||||
*/
|
|
||||||
export interface IBaseEvent {
|
export interface IBaseEvent {
|
||||||
type: IEventType;
|
type: IEventType;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
@ -359,7 +357,7 @@ export interface IBaseEvent {
|
|||||||
project?: string;
|
project?: string;
|
||||||
environment?: string;
|
environment?: string;
|
||||||
featureName?: string;
|
featureName?: string;
|
||||||
ip?: string;
|
ip: string;
|
||||||
data?: any;
|
data?: any;
|
||||||
preData?: any;
|
preData?: any;
|
||||||
tags?: ITag[];
|
tags?: ITag[];
|
||||||
|
Loading…
Reference in New Issue
Block a user