umami/queries/admin/account/updateAccount.js
2022-07-15 16:47:38 -07:00

13 lines
212 B
JavaScript

import { prisma, runQuery } from 'lib/db';
export async function updateAccount(user_id, data) {
return runQuery(
prisma.account.update({
where: {
user_id,
},
data,
}),
);
}