umami/queries/admin/account/updateAccount.js

9 lines
154 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-10-12 22:11:44 +02:00
export async function updateAccount(data, where) {
2022-08-28 06:38:35 +02:00
return prisma.client.account.update({
2022-10-12 22:11:44 +02:00
where,
2022-08-28 06:38:35 +02:00
data,
});
2022-07-12 23:14:36 +02:00
}