Skip to content

Commit

Permalink
feat: debugging in prod lesgo
Browse files Browse the repository at this point in the history
  • Loading branch information
sosweetham committed Oct 12, 2024
1 parent fb7e05d commit 515c320
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/(auth)/login/[userId]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ export const actions = {
method: 'GET'
});
const data = await posts.json();
console.log(data);
const firstPostTitle = data[0].title;
console.log(firstPostTitle);
const createdBy = data[0].createdBy;
console.log(createdBy);
if (createdBy !== userId) {
error(
403,
Expand Down

0 comments on commit 515c320

Please sign in to comment.