🐞 fix(形象): 退出军团后设置形象报错
This commit is contained in:
+1
-1
@@ -678,7 +678,7 @@ export default class Role extends BaseModel {
|
|||||||
}
|
}
|
||||||
// 退出公会
|
// 退出公会
|
||||||
public static async quitGuild(roleId: string, now: number) {
|
public static async quitGuild(roleId: string, now: number) {
|
||||||
const result: RoleType = await RoleModel.findOneAndUpdate({ roleId, hasGuild: true }, { hasGuild: false, guildCode: "", guildName: "", quitGuildTime: now }, { new: true }).lean();
|
const result: RoleType = await RoleModel.findOneAndUpdate({ roleId, hasGuild: true }, { hasGuild: false, guildCode: "", guildName: "", quitGuildTime: now, isGuildLeader: false }, { new: true }).lean();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user