🐞 fix(判空): 根据后台错误日志添加空值判断
This commit is contained in:
@@ -182,6 +182,7 @@ export class GuildHandler {
|
||||
|
||||
const select = ['code', 'name', 'notice', 'ceLimit', 'isAuto', 'icon', 'lv', 'memberCnt', 'guildCe'];
|
||||
const guild = await GuildModel.findByCode(code, null, select.join(' '));
|
||||
if(!guild) return resResult(STATUS.GUILD_NOT_FOUND);
|
||||
let leader = <RoleType>guild.leader;
|
||||
delete guild.leader;
|
||||
// 返回
|
||||
|
||||
Reference in New Issue
Block a user