Fix undefined variable

master
Miikka Virtanen 2017-01-01 06:35:34 +02:00
parent c0b0900fa2
commit e922f78ef3
1 changed files with 2 additions and 2 deletions

View File

@ -212,10 +212,10 @@ function getModmailChannelInfo(channel) {
// (has to do with the api events' consistency), and we only cache IDs, so we return an object that can be
// constructed from just the ID; we do this even if we find a matching channel so the returned object's signature is consistent
function getModmailChannel(user, allowCreate = true) {
// If the channel id's in the cache, return that
// If the channel id's in the cache, use that
if (modMailChannels[user.id]) {
return Promise.resolve({
id: channelId,
id: modMailChannels[user.id],
_wasCreated: false,
});
}