feat: workspace description

This commit is contained in:
Henry
2025-01-05 14:27:19 +00:00
parent f1b0860734
commit fa9be9d280
13 changed files with 1653 additions and 14 deletions

View File

@@ -55,13 +55,10 @@ export default async function handler(req: NextRequest) {
const metaData = checkoutSession.metadata;
if (metaData?.workspacePublicId && metaData.username) {
await workspaceRepo.update(
db,
metaData.workspacePublicId,
undefined,
metaData.username,
"pro",
);
await workspaceRepo.update(db, metaData.workspacePublicId, {
slug: metaData.username,
plan: "pro",
});
}
break;
}