mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
17 lines
295 B
JavaScript
17 lines
295 B
JavaScript
import { prisma, runQuery } from 'lib/db/relational';
|
|
|
|
export async function createWebsite(user_id, data) {
|
|
return runQuery(
|
|
prisma.website.create({
|
|
data: {
|
|
account: {
|
|
connect: {
|
|
user_id,
|
|
},
|
|
},
|
|
...data,
|
|
},
|
|
}),
|
|
);
|
|
}
|