mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bug fixes
This commit is contained in:
9 files changed
+51
-25
No files matched your search
@@ -155,7 +155,9 @@ class AccountService {
|
||||
this.syncing = false;
|
||||
}
|
||||
|
||||
async stop() { } // eslint-disable-line @typescript-eslint/no-empty-function
|
||||
async stop() {
|
||||
return this.api?.stop?.();
|
||||
}
|
||||
|
||||
async main() {
|
||||
const res = await this.login();
|
||||
|
||||
@@ -41,6 +41,7 @@ export interface IBasicProvider {
|
||||
submitProblem(id: string, lang: string, code: string, info: any, next: NextFunction, end: NextFunction): Promise<string | void>;
|
||||
waitForSubmission(id: string, next: NextFunction, end: NextFunction): Promise<void>;
|
||||
checkStatus?: (onCheckFunc: boolean) => Promise<void>;
|
||||
stop?: () => Promise<void>;
|
||||
}
|
||||
|
||||
export interface BasicProvider {
|
||||
|
||||
Reference in new issue
Block a user