umami/queries/admin/account/updateAccount.js
2022-08-25 22:04:32 -07:00

13 lines
223 B
JavaScript

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