From 205864720cdcbb5f46bee92fa6c577769a05f167 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 22 Sep 2024 20:15:39 +0800 Subject: [PATCH] refactor: change default workspace name --- src/server/model/user.ts | 2 +- src/server/model/workspace.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/model/user.ts b/src/server/model/user.ts index b1eae8b..d200a8a 100644 --- a/src/server/model/user.ts +++ b/src/server/model/user.ts @@ -104,7 +104,7 @@ export async function createUser(username: string, password: string) { const user = await prisma.$transaction(async (p) => { const newWorkspace = await p.workspace.create({ data: { - name: username, + name: username + "'s Personal Workspace", }, }); diff --git a/src/server/model/workspace.ts b/src/server/model/workspace.ts index 749e8a0..a5eada1 100644 --- a/src/server/model/workspace.ts +++ b/src/server/model/workspace.ts @@ -1,6 +1,6 @@ import { prisma } from './_client.js'; import { parseWebsiteFilters } from '../utils/prisma.js'; -import { DEFAULT_RESET_DATE, EVENT_TYPE } from '../utils/const.js'; +import { DEFAULT_RESET_DATE } from '../utils/const.js'; export async function getWorkspaceUser(workspaceId: string, userId: string) { const info = await prisma.workspacesOnUsers.findFirst({