inmemory to postgres
This commit is contained in:
@@ -83,6 +83,10 @@ export class SeasonSponsorship implements IEntity<string> {
|
||||
});
|
||||
}
|
||||
|
||||
static rehydrate(props: SeasonSponsorshipProps): SeasonSponsorship {
|
||||
return new SeasonSponsorship(props);
|
||||
}
|
||||
|
||||
private static validate(props: Omit<SeasonSponsorshipProps, 'createdAt' | 'status'>): void {
|
||||
if (!props.id || props.id.trim().length === 0) {
|
||||
throw new RacingDomainValidationError('SeasonSponsorship ID is required');
|
||||
|
||||
Reference in New Issue
Block a user