mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
10 lines
304 B
TypeScript
10 lines
304 B
TypeScript
import { Event as DbEvent, User as DbUser } from 'database'
|
|
|
|
import { Event } from './Event'
|
|
import { EventType } from './EventType'
|
|
|
|
export const EVENT_ADMIN_USER_ROLE_SET = async (
|
|
user: DbUser,
|
|
moderator: DbUser,
|
|
): Promise<DbEvent> => Event(EventType.ADMIN_USER_ROLE_SET, user, moderator).save()
|