mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Event for subscribe newsletter
This commit is contained in:
parent
c6ff91b29c
commit
7e838389a7
6
backend/src/event/EVENT_SUBSCRIBE_NEWSLETTER.ts
Normal file
6
backend/src/event/EVENT_SUBSCRIBE_NEWSLETTER.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { User as DbUser } from '@entity/User'
|
||||
import { Event as DbEvent } from '@entity/Event'
|
||||
import { Event, EventType } from './Event'
|
||||
|
||||
export const EVENT_SUBSCRIBE_NEWSLETTER = async (user: DbUser): Promise<DbEvent> =>
|
||||
Event(EventType.SUBSCRIBE_NEWSLETTER, user, user).save()
|
||||
Loading…
x
Reference in New Issue
Block a user