Fix error on fetching actor
I'm not sure what's actually causing it, but this prevents it from clogging up the log.
This commit is contained in:
parent
605aaab747
commit
eed3c335f2
|
@ -72,7 +72,10 @@ async function cacheActor(actorObject: ActorObject) {
|
|||
await getConnection().manager.save(actor);
|
||||
}
|
||||
|
||||
async function fetchActor(url: string): Promise<ActorObject | null> {
|
||||
async function fetchActor(url?: string): Promise<ActorObject | null> {
|
||||
if (!url) {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url,
|
||||
|
|
Loading…
Reference in New Issue