Browse Source

fix

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
b5b2bcc225
  1. 4
      api/controllers/payment.ts
  2. 4
      api/helpers.ts
  3. 2
      dist/api/controllers/payment.js
  4. 2
      dist/api/controllers/payment.js.map
  5. 4
      dist/api/helpers.js
  6. 2
      dist/api/helpers.js.map

4
api/controllers/payment.ts

@ -28,9 +28,9 @@ const sendPayment = async (req, res) => {
if (destination_key && !contact_id && !chat_id) {
return helpers.performKeysendMessage({
destination_key,
destination_key,
amount,
msg:'{}',
msg:{},
success: () => {
console.log('payment sent!')
success(res, {destination_key, amount})

4
api/helpers.ts

@ -58,7 +58,7 @@ const sendContactKeys = async (args) => {
performKeysendMessage({
destination_key,
amount: 3,
msg: JSON.stringify(msg),
msg,
success: (data) => {
yes = data
},
@ -78,7 +78,7 @@ const sendContactKeys = async (args) => {
const performKeysendMessage = async ({ destination_key, amount, msg, success, failure }) => {
const opts = {
dest: destination_key,
data: msg || JSON.stringify({}),
data: msg || {},
amt: Math.max(amount, 3)
}
try {

2
dist/api/controllers/payment.js

@ -26,7 +26,7 @@ const sendPayment = (req, res) => __awaiter(void 0, void 0, void 0, function* ()
return helpers.performKeysendMessage({
destination_key,
amount,
msg: '{}',
msg: {},
success: () => {
console.log('payment sent!');
res_1.success(res, { destination_key, amount });

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

File diff suppressed because one or more lines are too long

4
dist/api/helpers.js

@ -65,7 +65,7 @@ const sendContactKeys = (args) => __awaiter(void 0, void 0, void 0, function* ()
performKeysendMessage({
destination_key,
amount: 3,
msg: JSON.stringify(msg),
msg,
success: (data) => {
yes = data;
},
@ -85,7 +85,7 @@ exports.sendContactKeys = sendContactKeys;
const performKeysendMessage = ({ destination_key, amount, msg, success, failure }) => __awaiter(void 0, void 0, void 0, function* () {
const opts = {
dest: destination_key,
data: msg || JSON.stringify({}),
data: msg || {},
amt: Math.max(amount, 3)
};
try {

2
dist/api/helpers.js.map

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