fix: make some build fix
Some checks failed
Build Docker Image / run (pull_request) Failing after 31s

This commit is contained in:
2024-04-25 19:52:01 +02:00
parent 2cc3219b30
commit 76755baa1d
6 changed files with 77 additions and 41 deletions

View File

@ -3,7 +3,7 @@ import PocketBase from 'pocketbase';
import Layout from '../../layouts/Layout.astro';
import AstroUtils from '../../libs/AstroUtils';
import { getUser, setUser } from 'libs/AuthUtils';
import UserObj from 'models/User';
import type UserObj from 'models/User';
const connected = await getUser(Astro.cookies)
@ -17,7 +17,7 @@ const res = await AstroUtils.wrap(async () => {
return
}
const form = await Astro.request.formData()
const request : UserObj = {
const request = {
username: form.get("username") as string,
name: form.get("name") as string,
email: form.get("email") as string,