refactor
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
import { RacingDomainValidationError, RacingDomainInvariantError } from '../errors/RacingDomainError';
|
||||
import type { IEntity } from '@core/shared/domain';
|
||||
import type { SessionType } from '../value-objects/SessionType';
|
||||
import { SessionType } from '../value-objects/SessionType';
|
||||
export type RaceStatus = 'scheduled' | 'running' | 'completed' | 'cancelled';
|
||||
|
||||
export class Race implements IEntity<string> {
|
||||
|
||||
@@ -110,6 +110,6 @@ export class Money implements IValueObject<MoneyProps> {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
});
|
||||
return formatter.format(this.amount);
|
||||
return formatter.format(this.amount / 100);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user