umami/queries/admin/website/updateWebsite.js

11 lines
170 B
JavaScript
Raw Normal View History

2022-08-28 06:38:35 +02:00
import prisma from 'lib/prisma';
2022-07-12 23:14:36 +02:00
2022-11-02 23:45:47 +01:00
export async function updateWebsite(id, data) {
2022-08-28 06:38:35 +02:00
return prisma.client.website.update({
2022-11-02 23:45:47 +01:00
where: {
id,
},
2022-08-28 06:38:35 +02:00
data,
});
2022-07-12 23:14:36 +02:00
}