Fix deploy error

This commit is contained in:
Clayton Wilson 2019-12-04 17:10:26 -05:00
parent 4e5b100968
commit 0bcfdcdd6c

View File

@ -813,7 +813,8 @@ oneWayCheck = (userA, userB) => {
dmRecipients.forEach((dmRecipient) => { dmRecipients.forEach((dmRecipient) => {
if (dmRecipient === userB) { if (dmRecipient === userB) {
console.log(`You already have a DM with ${userB}`); console.log(`You already have a DM with ${userB}`);
reject(`You already have a DM with ${userB}`); reject(new Error(`You already have a DM with ${userB}`));
return;
} }
}) })