make thread name 'Thread' when new thread is created

This commit is contained in:
shatfield4 2024-06-04 16:00:05 -07:00
parent 0055de86e3
commit d003613bb1

View File

@ -8,7 +8,7 @@ const WorkspaceThread = {
try { try {
const thread = await prisma.workspace_threads.create({ const thread = await prisma.workspace_threads.create({
data: { data: {
name: "New thread", name: "Thread",
slug: uuidv4(), slug: uuidv4(),
user_id: userId ? Number(userId) : null, user_id: userId ? Number(userId) : null,
workspace_id: workspace.id, workspace_id: workspace.id,