WIP(`ApPersonService.ts`): `as any`をなくした

エラーをスローするようにせざるを得なかったのでエラーメッセージを考える必要がある。
This commit is contained in:
okayurisotto 2023-07-02 18:34:52 +09:00
parent 44a1b6d5c0
commit b1ecaecf40
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,8 @@ export class ApPersonService implements OnModuleInit {
// eslint-disable-next-line no-param-reassign
if (resolver == null) resolver = this.apResolverService.createResolver();
const object = await resolver.resolve(uri) as any;
const object = await resolver.resolve(uri);
if (object.id == null) throw new Error(''); // TODO
const person = this.validateActor(object, uri);