Share page changes.

This commit is contained in:
Mike Cao 2026-01-24 02:47:09 -08:00
parent c9f6653b62
commit 4a09f2bff6
11 changed files with 60 additions and 140 deletions

View file

@ -4,14 +4,9 @@ import { createToken } from '@/lib/jwt';
import prisma from '@/lib/prisma';
import redis from '@/lib/redis';
import { json, notFound } from '@/lib/response';
import type { WhiteLabel } from '@/lib/types';
import { getShareByCode, getWebsite } from '@/queries/prisma';
export interface WhiteLabel {
name: string;
url: string;
image: string;
}
async function getAccountId(website: { userId?: string; teamId?: string }): Promise<string | null> {
if (website.userId) {
return website.userId;