mirror of
https://github.com/owncast/owncast.git
synced 2024-11-27 17:59:21 +03:00
17 lines
471 B
TypeScript
17 lines
471 B
TypeScript
import { User } from './user.model';
|
|
|
|
export const createUser = (name: string, color: number, createdAt: Date): User => ({
|
|
id: name,
|
|
displayName: name,
|
|
displayColor: color,
|
|
createdAt,
|
|
authenticated: true,
|
|
nameChangedAt: createdAt,
|
|
previousNames: [],
|
|
scopes: [],
|
|
isBot: false,
|
|
isModerator: false,
|
|
});
|
|
|
|
export const spidermanUser = createUser('Spiderman', 1, new Date(2020, 1, 2));
|
|
export const grootUser = createUser('Groot', 1, new Date(2020, 2, 3));
|