File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ const user = sqliteTable('user', {
37
37
password: text (' password' ).notNull (),
38
38
})
39
39
40
- const createUser = createInsertSchema (Table . character )
40
+ const createUser = createInsertSchema (user )
41
41
42
42
const auth = new Elysia ({ prefix: ' /auth' })
43
43
.put (
44
44
' /sign-up' ,
45
45
({ body }) => createUser (body ),
46
46
{
47
- body: t .Omit (createUser , ' id' )
47
+ body: t .Omit (createUser , [ ' id' ] )
48
48
}
49
49
)
50
50
```
@@ -64,7 +64,7 @@ const user = sqliteTable('user', {
64
64
image: text (' image' )
65
65
})
66
66
67
- const createUser = createInsertSchema (Table . character , {
67
+ const createUser = createInsertSchema (user , {
68
68
image: t .File ({ // [!code ++]
69
69
type: ' image' , // [!code ++]
70
70
maxSize: ' 2m' // [!code ++]
@@ -80,7 +80,7 @@ const auth = new Elysia({ prefix: '/auth' })
80
80
return createUser ({ image: imageURL , ... body }) // [!code ++]
81
81
},
82
82
{
83
- body: t .Omit (createUser , ' id' )
83
+ body: t .Omit (createUser , [ ' id' ] )
84
84
}
85
85
)
86
- ```
86
+ ```
You can’t perform that action at this time.
0 commit comments