Skip to content

Commit

Permalink
Deleted unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlAnoud2003 committed Oct 18, 2024
1 parent db62d65 commit 73b488d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Binary file modified dump.rdb
Binary file not shown.
4 changes: 1 addition & 3 deletions src/controllers/resources-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ controllers.getResourcesButtonPage = async (req, res) => {
console.log('Extracted links:', cleanedLinks); // Log the cleaned links to the console

res.render('resources-button', {
title: 'Resources Page', // You can customize the title or add more data as needed
title: 'Resources Page',
links: JSON.stringify(cleanedLinks),
});
} catch (err) {
console.error('Error retrieving links:', err);
// Send error response
res.status(500).json({
message: 'An error occurred while fetching links',
error: err.message,
});
// res.status(500).send('Internal Server Error');
}
};

Expand Down

0 comments on commit 73b488d

Please sign in to comment.