mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-22 22:28:22 +03:00
add missing default property
This commit is contained in:
@@ -33,6 +33,7 @@ import {
|
||||
import {AMFooter} from "@/components/am-footer.tsx";
|
||||
import {AMHeader} from "@/components/am-header.tsx";
|
||||
import {AMCard, AMCardDetail} from "@/components/am-card.tsx";
|
||||
import {AIMENET_API_VERSION} from "@/lib/aime-net.ts";
|
||||
|
||||
const serverAdditionSchema = z.object({
|
||||
address: z.string().startsWith("http")
|
||||
@@ -111,9 +112,10 @@ function ServerAddForm() {
|
||||
// test for duplicate
|
||||
if (!existingServer) {
|
||||
const newId = await db.servers.add({
|
||||
server_name: "Server",
|
||||
lastConnected: 0,
|
||||
address: values.address
|
||||
server_name: "Server",
|
||||
address: values.address,
|
||||
api_version: AIMENET_API_VERSION
|
||||
});
|
||||
|
||||
// set server name using id
|
||||
|
||||
Reference in New Issue
Block a user