mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
use uuid
This commit is contained in:
parent
246e4e5f4f
commit
17041efaae
73 changed files with 491 additions and 874 deletions
|
|
@ -5,7 +5,7 @@ export async function createWebsite(userId, data) {
|
|||
return prisma.client.website
|
||||
.create({
|
||||
data: {
|
||||
account: {
|
||||
user: {
|
||||
connect: {
|
||||
id: userId,
|
||||
},
|
||||
|
|
@ -15,7 +15,7 @@ export async function createWebsite(userId, data) {
|
|||
})
|
||||
.then(async res => {
|
||||
if (redis.enabled && res) {
|
||||
await redis.set(`website:${res.websiteUuid}`, res.id);
|
||||
await redis.set(`website:${res.id}`, 1);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue