No department error
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-02-28 07:26:19 +01:00
parent 442541d0f8
commit 56b986ff95
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module.exports = Self => {
}
});
const department = workerDepartment && workerDepartment.department();
const channelName = department.chatName;
const channelName = department && department.chatName;
if (channelName)
return Self.send(ctx, `#${channelName}`, `@${account.name} => ${message}`);