mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 21:26:33 +02:00
refactor: fix types
This commit is contained in:
@@ -162,7 +162,7 @@ export class SignupApiService {
|
||||
token: secret,
|
||||
};
|
||||
} catch (err) {
|
||||
throw new FastifyReplyError(400, err);
|
||||
throw new FastifyReplyError(400, typeof err === 'string' ? err : (err as Error).toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -195,7 +195,7 @@ export class SignupApiService {
|
||||
|
||||
return this.signinService.signin(request, reply, account as ILocalUser);
|
||||
} catch (err) {
|
||||
throw new FastifyReplyError(400, err);
|
||||
throw new FastifyReplyError(400, typeof err === 'string' ? err : (err as Error).toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user