mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: import: show progress
This commit is contained in:
4 files changed
+23
-9
No files matched your search
@@ -249,7 +249,7 @@ export async function apply(ctx: Context) {
|
||||
checkPriv(...args: number[]) {
|
||||
if (!this.user.hasPriv(...args)) throw new PrivilegeError(...args);
|
||||
},
|
||||
progress(message: string, params: any[]) {
|
||||
progress(message: string, params: any[] = []) {
|
||||
Hydro.model.message.sendInfo(this.user._id, JSON.stringify({ message, params }));
|
||||
},
|
||||
async limitRate(
|
||||
|
||||
Reference in new issue
Block a user