Skip to content

Commit

Permalink
fix: remove user articles filter by article is publish
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielgama committed Aug 28, 2024
1 parent fa8a3ae commit abf4387
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
secret_token: 'tokenlalalala',
expires_in_token: '16m',
expires_in_token: '7d',
secret_refresh_token: 'tokenbebebebe',
expires_in_refresh_token: '12d',
expires_refresh_token_days: 30,
Expand Down
1 change: 0 additions & 1 deletion src/controller/article-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export class ArticleController {
const articles = await prisma.article.findMany({
where: {
authorId: userId,
published: true,
},
include: {
author: {
Expand Down

0 comments on commit abf4387

Please sign in to comment.