diff --git a/app/scripts/user-scraper.js b/app/scripts/user-scraper.js index 05cff21..c9c96e3 100644 --- a/app/scripts/user-scraper.js +++ b/app/scripts/user-scraper.js @@ -12,7 +12,7 @@ const UserData = require("./classes/user-data.js"); /** * @protected * Gets user data, such as username, url of watched threads, and profile picture url. - * @return {UserData} User data + * @return {Promise} User data */ module.exports.getUserData = async function() { // Fetch data @@ -34,7 +34,7 @@ module.exports.getUserData = async function() { * It connects to the page and extracts the name * of the currently logged in user and the URL * of their profile picture. - * @return {Object.} + * @return {Promise>} */ async function fetchUsernameAndAvatar() { // Fetch page @@ -59,7 +59,7 @@ async function fetchUsernameAndAvatar() { /** * @private * Gets the list of URLs of threads watched by the user. - * @returns {String[]} List of URLs + * @returns {Promise} List of URLs */ async function fetchWatchedThreadURLs() { // Local variables