mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-20 13:40:10 +08:00
style: lint
This commit is contained in:
parent
c1cac8de19
commit
9c88fcb610
@ -67,7 +67,7 @@ export class NTQQGroupApi {
|
|||||||
1,
|
1,
|
||||||
1000
|
1000
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
resolve(data[1])
|
resolve(data[1]);
|
||||||
}).catch(reject);
|
}).catch(reject);
|
||||||
|
|
||||||
onCancel(() => {
|
onCancel(() => {
|
||||||
@ -78,9 +78,9 @@ export class NTQQGroupApi {
|
|||||||
const task = new CancelableTask(executor);
|
const task = new CancelableTask(executor);
|
||||||
this.context.session.getGroupService().getGroupShutUpMemberList(groupCode).then(e => {
|
this.context.session.getGroupService().getGroupShutUpMemberList(groupCode).then(e => {
|
||||||
if (e.result !== 0) {
|
if (e.result !== 0) {
|
||||||
task.cancel()
|
task.cancel();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
return await task.catch(() => []);
|
return await task.catch(() => []);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,6 @@ export const OB11SetConfigHandler: RequestHandler = async (req, res) => {
|
|||||||
await WebUiDataRuntime.setOB11Config(JSON.parse(req.body.config));
|
await WebUiDataRuntime.setOB11Config(JSON.parse(req.body.config));
|
||||||
return sendSuccess(res, null);
|
return sendSuccess(res, null);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
|
||||||
return sendError(res, 'Error: ' + e);
|
return sendError(res, 'Error: ' + e);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user