doll active state <-> doll stream toggle
This commit is contained in:
11
src/users/events/user.events.ts
Normal file
11
src/users/events/user.events.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Doll } from '@prisma/client';
|
||||
|
||||
export const UserEvents = {
|
||||
ACTIVE_DOLL_CHANGED: 'user.active-doll.changed',
|
||||
} as const;
|
||||
|
||||
export interface UserActiveDollChangedEvent {
|
||||
userId: string;
|
||||
dollId: string | null;
|
||||
doll: Doll | null;
|
||||
}
|
||||
Reference in New Issue
Block a user