Skip to content

Commit

Permalink
stil 7 issues, giving up
Browse files Browse the repository at this point in the history
  • Loading branch information
suculent committed Nov 15, 2023
1 parent 2987db8 commit 42f25fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/router.transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ module.exports = function (app) {
let response = await transfer.request(owner, body).catch( (error) => {
console.log("[transferResultRedirect] await transfer.request with error", error, "in body", {body});
transferResultRedirect(false, res, error);
}).then(() => {
console.log("[transferResultRedirect] with response", response);
transferResultRedirect(true, res, response);
});
console.log("[transferResultRedirect] with response", response);
transferResultRedirect(true, res, response);

}

async function getDeclineTransfer(req, res) {
Expand All @@ -49,9 +49,8 @@ module.exports = function (app) {

let response = await transfer.decline(body).catch((response) => {
transferResultRedirect(false, res, response);
}).then(() => {
transferResultRedirect(true, res, response);
});
transferResultRedirect(true, res, response);
}

async function postDeclineTransfer(req, res) {
Expand Down Expand Up @@ -82,10 +81,11 @@ module.exports = function (app) {
transfer_id: req.query.transfer_id,
udids: []
}).catch((error) => {
console.log("[getAcceptTransfer] failed with error", error);
transferResultRedirect(false, res, error);
}).then(() => {
transferResultRedirect(true, res, response);
});

transferResultRedirect(true, res, response);
}

async function postAcceptTransfer(req, res) {
Expand Down
2 changes: 2 additions & 0 deletions spec/jasmine/TransferSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ describe("Transfer", function () {

// create transfer request
let response = await transfer.request(owner, body);

console.log("[spec] CHECKME! transfer request response:", response);

expect(response).to.be.a('string'); // DTID

Expand Down

0 comments on commit 42f25fc

Please sign in to comment.