inmemory to postgres
This commit is contained in:
@@ -20,4 +20,11 @@ export class Game implements IEntity<GameId> {
|
||||
name,
|
||||
});
|
||||
}
|
||||
|
||||
static rehydrate(props: { id: string; name: string }): Game {
|
||||
return new Game({
|
||||
id: GameId.create(props.id),
|
||||
name: GameName.create(props.name),
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user