Browse Source

handle empty amount

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
3409c1050f
  1. 4
      api/controllers/messages.ts
  2. 4
      dist/api/controllers/messages.js
  3. 2
      dist/api/controllers/messages.js.map

4
api/controllers/messages.ts

@ -126,7 +126,7 @@ const sendMessage = async (req, res) => {
chatId: chat.id,
type: constants.message_types.message,
sender: owner.id,
amount: amount,
amount: amount||0,
date: date,
messageContent: text,
remoteMessageContent,
@ -142,7 +142,7 @@ const sendMessage = async (req, res) => {
network.sendMessage({
chat: chat,
sender: owner,
amount: amount,
amount: amount||0,
type: constants.message_types.message,
message: {
id: message.id,

4
dist/api/controllers/messages.js

@ -112,7 +112,7 @@ const sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function* ()
chatId: chat.id,
type: constants.message_types.message,
sender: owner.id,
amount: amount,
amount: amount || 0,
date: date,
messageContent: text,
remoteMessageContent,
@ -126,7 +126,7 @@ const sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function* ()
network.sendMessage({
chat: chat,
sender: owner,
amount: amount,
amount: amount || 0,
type: constants.message_types.message,
message: {
id: message.id,

2
dist/api/controllers/messages.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save