Skip to content

Commit 30b1a9b

Browse files
committed
Remove audit log entries
1 parent dc3a5e6 commit 30b1a9b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

apps/rpc/src/modules/article/article-router.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,13 @@ export type AllArticlesOutput = inferProcedureOutput<typeof allArticlesProcedure
5656
const allArticlesProcedure = procedure
5757
.input(PaginateInputSchema)
5858
.use(withDatabaseTransaction())
59-
.use(withAuditLogEntry())
6059
.query(async ({ input, ctx }) => ctx.articleService.findMany(ctx.handle, {}, input))
6160

6261
export type FindArticlesInput = inferProcedureInput<typeof findArticlesProcedure>
6362
export type FindArticlesOutput = inferProcedureOutput<typeof findArticlesProcedure>
6463
const findArticlesProcedure = procedure
6564
.input(BasePaginateInputSchema.extend({ filters: ArticleFilterQuerySchema }))
6665
.use(withDatabaseTransaction())
67-
.use(withAuditLogEntry())
6866
.query(async ({ input, ctx }) => {
6967
const items = await ctx.articleService.findMany(ctx.handle, input.filters, input)
7068

@@ -79,37 +77,32 @@ export type FindArticleOutput = inferProcedureOutput<typeof findArticleProcedure
7977
const findArticleProcedure = procedure
8078
.input(ArticleSchema.shape.id)
8179
.use(withDatabaseTransaction())
82-
.use(withAuditLogEntry())
8380
.query(async ({ input, ctx }) => ctx.articleService.findById(ctx.handle, input))
8481

8582
export type GetArticleInput = inferProcedureInput<typeof getArticleProcedure>
8683
export type GetArticleOutput = inferProcedureOutput<typeof getArticleProcedure>
8784
const getArticleProcedure = procedure
8885
.input(ArticleSchema.shape.id)
8986
.use(withDatabaseTransaction())
90-
.use(withAuditLogEntry())
9187
.query(async ({ input, ctx }) => ctx.articleService.getById(ctx.handle, input))
9288

9389
export type FindRelatedArticlesInput = inferProcedureInput<typeof findRelatedArticlesProcedure>
9490
export type FindRelatedArticlesOutput = inferProcedureOutput<typeof findRelatedArticlesProcedure>
9591
const findRelatedArticlesProcedure = procedure
9692
.input(ArticleSchema)
9793
.use(withDatabaseTransaction())
98-
.use(withAuditLogEntry())
9994
.query(async ({ input, ctx }) => ctx.articleService.findRelated(ctx.handle, input))
10095

10196
export type FindFeaturedArticlesInput = inferProcedureInput<typeof findFeaturedArticlesProcedure>
10297
export type FindFeaturedArticlesOutput = inferProcedureOutput<typeof findFeaturedArticlesProcedure>
10398
const findFeaturedArticlesProcedure = procedure
10499
.use(withDatabaseTransaction())
105-
.use(withAuditLogEntry())
106100
.query(async ({ ctx }) => ctx.articleService.findFeatured(ctx.handle))
107101

108102
export type GetArticleTagsInput = inferProcedureInput<typeof getArticleTagsProcedure>
109103
export type GetArticleTagsOutput = inferProcedureOutput<typeof getArticleTagsProcedure>
110104
const getArticleTagsProcedure = procedure
111105
.use(withDatabaseTransaction())
112-
.use(withAuditLogEntry())
113106
.query(async ({ ctx }) => ctx.articleService.getTags(ctx.handle))
114107

115108
export type FindArticleTagsOrderedByPopularityInput = inferProcedureInput<
@@ -120,7 +113,6 @@ export type FindArticleTagsOrderedByPopularityOutput = inferProcedureOutput<
120113
>
121114
const findArticleTagsOrderedByPopularityProcedure = procedure
122115
.use(withDatabaseTransaction())
123-
.use(withAuditLogEntry())
124116
.query(async ({ ctx }) => ctx.articleService.findTagsOrderedByPopularity(ctx.handle))
125117

126118
export type AddArticleTagInput = inferProcedureInput<typeof addArticleTagProcedure>

0 commit comments

Comments
 (0)