lint code

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2024-04-20 00:18:43 +02:00
parent c6ba8c791b
commit c698bfec8a
44 changed files with 180 additions and 177 deletions

View File

@@ -1,4 +1,4 @@
import { z } from 'zod'
import {z} from 'zod'
const PostSchema = z.object({ slug: z.string() }).parse
@@ -7,7 +7,7 @@ export default defineEventHandler(async (event) => {
return useDB().update(tables.posts)
.set({
views: sql`${tables.posts.views}
+ 1`
+ 1`,
})
.where(eq(tables.posts.slug, slug))
})