cleanup(`ApNoteService.ts`)

This commit is contained in:
okayurisotto 2023-07-03 06:12:26 +09:00
parent d8f0d76973
commit bfc22e9518
1 changed files with 4 additions and 6 deletions

View File

@ -111,12 +111,10 @@ export class ApNoteService {
const entryUri = getApId(value); const entryUri = getApId(value);
const err = this.validateNote(object, entryUri); const err = this.validateNote(object, entryUri);
if (err) { if (err) {
this.logger.error(`${err.message}`, { this.logger.error(err.message, {
resolver: { resolver: { history: resolver.getHistory() },
history: resolver.getHistory(), value,
}, object,
value: value,
object: object,
}); });
throw new Error('invalid note'); throw new Error('invalid note');
} }