core: import: show progress

This commit is contained in:
undefined committed 2024-08-03 00:09:15 +08:00
1 parent 24e3905643
commit f266542dec
4 files changed
+23 -9

No files matched your search

+1 -1
View File
@@ -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(