harden media
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import type { ParticipantRef } from '@core/racing/domain/types/ParticipantRef';
|
||||
import type { ChampionshipType } from '@core/racing/domain/types/ChampionshipType';
|
||||
import { MediaReference } from '../../../core/domain/media/MediaReference';
|
||||
|
||||
export const makeDriverRef = (id: string): ParticipantRef => ({
|
||||
type: 'driver' as ChampionshipType,
|
||||
id,
|
||||
avatarRef: MediaReference.systemDefault('avatar'),
|
||||
});
|
||||
Reference in New Issue
Block a user