Skip to content

Commit

Permalink
coming along well
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeaux committed Sep 16, 2020
1 parent c7fc641 commit 0cee263
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions controllers/backend/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,13 @@ exports.postConfirmEmail = async(req, res, next) => {
*/
exports.postImporter = (req, res) => {

const youtubeLink = req.body.youtubeLink;

const channelUrl = req.user.channelUrl;

importerDownloadFunction(channelUrl, youtubeLink);


console.log(req.body);

return res.send('hello');
Expand Down
10 changes: 6 additions & 4 deletions views/account/importer.pug
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ block content
_csrf: csrf
}

var thing = $('.importInput').val()
var youtubeLink = $('.importInput').val()

data.youtubeLink = youtubeLink;

if(thing){
console.log(youtubeLink);

if(youtubeLink){
$.ajax({
type: 'POST',
url: `/importer`,
Expand All @@ -97,7 +100,6 @@ block content
});

}
console.log('hit!');
console.log(thing);

})
})

0 comments on commit 0cee263

Please sign in to comment.