用户管理增加用户名搜索
This commit is contained in:
+3
-2
@@ -555,7 +555,8 @@ export class DbManager {
|
||||
async getUserListV2(
|
||||
offset = 0,
|
||||
limit = 20,
|
||||
ownerUsername?: string
|
||||
ownerUsername?: string,
|
||||
search?: string
|
||||
): Promise<{
|
||||
users: Array<{
|
||||
username: string;
|
||||
@@ -569,7 +570,7 @@ export class DbManager {
|
||||
total: number;
|
||||
}> {
|
||||
if (typeof (this.storage as any).getUserListV2 === 'function') {
|
||||
return (this.storage as any).getUserListV2(offset, limit, ownerUsername);
|
||||
return (this.storage as any).getUserListV2(offset, limit, ownerUsername, search);
|
||||
}
|
||||
return { users: [], total: 0 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user