File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 16
16
- run : npm ci
17
17
- run : npm run build --if-present
18
18
- run : npm test
19
+ # - run: make lint
Original file line number Diff line number Diff line change @@ -11,4 +11,10 @@ export default [
11
11
} ,
12
12
stylistic . configs [ 'recommended-flat' ] ,
13
13
pluginJs . configs . recommended ,
14
+ {
15
+ rules : {
16
+ 'no-unused-vars' : 'off' ,
17
+ } ,
18
+ ignores : [ 'schema.js' ] , // is now working
19
+ } ,
14
20
]
Original file line number Diff line number Diff line change 1
1
import vine from '@vinejs/vine'
2
- import uniqueRule from '../rules/unique.js'
3
2
import { courses } from '../db/schema.js'
4
3
import { drizzle } from 'drizzle-orm/better-sqlite3'
5
4
import * as schemas from '../db/schema.js'
Original file line number Diff line number Diff line change 1
- import { and , asc , eq } from 'drizzle-orm'
2
1
import { schema } from '../../schema.js'
3
2
4
3
/**
@@ -20,8 +19,8 @@ export default async function (fastify) {
20
19
} ,
21
20
} ,
22
21
} ,
23
- async ( request , reply ) => {
24
- const client = await fastify . db . query . users . findFirst ( )
22
+ async ( _request , reply ) => {
23
+ const client = await db . query . users . findFirst ( )
25
24
fastify . assert . ok ( client )
26
25
const token = fastify . jwt . sign ( { user : { id : client . id } } )
27
26
return reply . code ( 201 )
You can’t perform that action at this time.
0 commit comments