mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
Share page changes.
This commit is contained in:
parent
c9f6653b62
commit
4a09f2bff6
11 changed files with 60 additions and 140 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue