refactor: change default workspace name
This commit is contained in:
parent
f16ccb5689
commit
205864720c
@ -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",
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user