1
0
forked from mirror/misskey

refactor(ApQuestionService.ts): function return type

This commit is contained in:
okayurisotto 2023-07-03 07:18:09 +09:00
parent 630078f92e
commit afe16d702c

View File

@ -68,7 +68,7 @@ export class ApQuestionService {
* @returns true if updated
*/
@bindThis
public async updateQuestion(value: string | IObject, resolver?: Resolver) {
public async updateQuestion(value: string | IObject, resolver?: Resolver): Promise<boolean> {
const uri = typeof value === 'string' ? value : value.id;
if (uri == null) throw new Error(''); // TODO