好友:特殊情况处理
This commit is contained in:
@@ -64,6 +64,11 @@ export default class FriendApply extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
// 拉黑时删除申请
|
||||
public static async deleteApplyByRoles(roleId: string, frdRoleId: string) {
|
||||
const result = await FriendApplyModel.deleteMany({ $or: [{ roleId, frdRoleId}, {roleId: frdRoleId, frdRoleId: roleId}] });
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async deleteAccount(roleId: string) {
|
||||
let result = await FriendApplyModel.deleteMany({ $or: [{ roleId: roleId }, { frdRoleId: roleId }] });
|
||||
|
||||
Reference in New Issue
Block a user