feat: Custom script path for Plausible

This commit is contained in:
Andras Bacsai
2022-05-09 15:05:24 +02:00
parent 1f087cc29a
commit 24c655d7ef
7 changed files with 88 additions and 8 deletions

View File

@@ -329,7 +329,8 @@ export async function updatePlausibleAnalyticsService({
email,
exposePort,
username,
name
name,
scriptName
}: {
id: string;
fqdn: string;
@@ -337,8 +338,12 @@ export async function updatePlausibleAnalyticsService({
name: string;
email: string;
username: string;
scriptName: string;
}): Promise<void> {
await prisma.plausibleAnalytics.update({ where: { serviceId: id }, data: { email, username } });
await prisma.plausibleAnalytics.update({
where: { serviceId: id },
data: { email, username, scriptName }
});
await prisma.service.update({ where: { id }, data: { name, fqdn, exposePort } });
}