mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 18:28:47 +00:00
Fix deploy error
This commit is contained in:
parent
4e5b100968
commit
0bcfdcdd6c
@ -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;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user