don't suppress errors when Update(Question) or Update(Note) fails

This commit is contained in:
Hazelnoot 2024-11-03 13:01:04 -05:00
parent c5f572dcfd
commit 4ec6bffca7

View file

@ -821,7 +821,7 @@ export class ApInboxService {
return await this.create(actor, activity, resolver);
}
await this.apQuestionService.updateQuestion(object, actor, resolver).catch(err => console.error(err));
await this.apQuestionService.updateQuestion(object, actor, resolver);
return 'ok: Question updated';
} else if (isPost(object)) {
// If we get an Update(Note) for a note that doesn't exist, then create it instead
@ -829,7 +829,7 @@ export class ApInboxService {
return await this.create(actor, activity, resolver);
}
await this.apNoteService.updateNote(object, actor, resolver).catch(err => console.error(err));
await this.apNoteService.updateNote(object, actor, resolver);
return 'ok: Note updated';
} else {
return `skip: Unsupported type for Update: ${getApType(object)} (object ${getNullableApId(object)})`;