Database refactoring.

This commit is contained in:
Mike Cao committed 2022-08-27 21:38:35 -07:00
1 parent bb184dc2cc
commit 467c7f289f
37 files changed
+566 -591

No files matched your search

+7 -9
View File
@@ -1,12 +1,10 @@
import { prisma, runQuery } from 'lib/relational';
import prisma from 'lib/prisma';
export async function updateWebsite(website_id, data) {
return runQuery(
prisma.website.update({
where: {
website_id,
},
data,
}),
);
return prisma.client.website.update({
where: {
website_id,
},
data,
});
}