Skip to content

Commit

Permalink
chore(extension api): updated datagram to only output url
Browse files Browse the repository at this point in the history
  • Loading branch information
lryanle committed Apr 27, 2024
1 parent 8342381 commit 656e61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/api/ext/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function getRandomCleanListing() {
]).toArray();

if (results.length > 0) {
return results[0];
return results[0].link;
} else {
throw new Error('No suitable listing found');
}
Expand Down

0 comments on commit 656e61a

Please sign in to comment.