fase(4): crawling infrastructure with migrated code
This commit is contained in:
@@ -11,6 +11,10 @@ class CrawlSession extends AggregateRoot_1.AggregateRoot {
|
||||
constructor(props, id) {
|
||||
super(props, id);
|
||||
}
|
||||
/** Reconstruct from persistence without emitting domain events */
|
||||
static reconstitute(props, id) {
|
||||
return new CrawlSession(props, id);
|
||||
}
|
||||
static create(request) {
|
||||
const urlResult = Url_1.Url.create(request.url);
|
||||
if (!urlResult.ok) {
|
||||
|
||||
Reference in New Issue
Block a user