reject correctly
This commit is contained in:
parent
93960e9317
commit
17ed0f6a9d
1 changed files with 1 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ const sendMessage = async (recipientPublicKey, body, user, SEA) => {
|
|||
.get(Key.MESSAGES)
|
||||
.set(newMessage, ack => {
|
||||
if (ack.err) {
|
||||
rej(ack.err)
|
||||
rej(new Error(ack.err))
|
||||
} else {
|
||||
res()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue