use const
This commit is contained in:
parent
324469259d
commit
041fd8bb21
|
@ -56,7 +56,9 @@ export const handler: Handlers<User | null> = {
|
||||||
},
|
},
|
||||||
async PUT(req, _ctx) {
|
async PUT(req, _ctx) {
|
||||||
// TODO: form or json
|
// TODO: form or json
|
||||||
let model = UserModel.omit({ createdAt: true }).partial({ avatarUrl: true })
|
const model = UserModel.omit({ createdAt: true }).partial({
|
||||||
|
avatarUrl: true,
|
||||||
|
})
|
||||||
let user: z.infer<typeof model>
|
let user: z.infer<typeof model>
|
||||||
let redirectInstead = false
|
let redirectInstead = false
|
||||||
if (req.headers.get('content-type')?.includes('json')) {
|
if (req.headers.get('content-type')?.includes('json')) {
|
||||||
|
|
Loading…
Reference in a new issue