Skip to content

Commit

Permalink
chore: make ip mandatory (#7220)
Browse files Browse the repository at this point in the history
IP should be mandatory for storing events. Automated events should use
127.0.0.1
  • Loading branch information
gastonfournier authored May 31, 2024
1 parent 5eadce0 commit 5845d0e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,17 +349,15 @@ 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;
createdByUserId: number;
project?: string;
environment?: string;
featureName?: string;
ip?: string;
ip: string;
data?: any;
preData?: any;
tags?: ITag[];
Expand Down

0 comments on commit 5845d0e

Please sign in to comment.