mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
refactor(ApQuestionService.ts
): any
を消す
This commit is contained in:
parent
d0e00c8d17
commit
630078f92e
@ -68,8 +68,9 @@ export class ApQuestionService {
|
||||
* @returns true if updated
|
||||
*/
|
||||
@bindThis
|
||||
public async updateQuestion(value: any, resolver?: Resolver) {
|
||||
public async updateQuestion(value: string | IObject, resolver?: Resolver) {
|
||||
const uri = typeof value === 'string' ? value : value.id;
|
||||
if (uri == null) throw new Error(''); // TODO
|
||||
|
||||
// URIがこのサーバーを指しているならスキップ
|
||||
if (uri.startsWith(this.config.url + '/')) throw new Error('uri points local');
|
||||
|
Loading…
Reference in New Issue
Block a user