refactor: change default workspace name

This commit is contained in:
moonrailgun 2024-09-22 20:15:39 +08:00
parent f16ccb5689
commit 205864720c
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ export async function createUser(username: string, password: string) {
const user = await prisma.$transaction(async (p) => { const user = await prisma.$transaction(async (p) => {
const newWorkspace = await p.workspace.create({ const newWorkspace = await p.workspace.create({
data: { data: {
name: username, name: username + "'s Personal Workspace",
}, },
}); });

View File

@ -1,6 +1,6 @@
import { prisma } from './_client.js'; import { prisma } from './_client.js';
import { parseWebsiteFilters } from '../utils/prisma.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) { export async function getWorkspaceUser(workspaceId: string, userId: string) {
const info = await prisma.workspacesOnUsers.findFirst({ const info = await prisma.workspacesOnUsers.findFirst({