umami/queries/admin/account/updateAccount.js
2022-08-27 21:38:35 -07:00

11 lines
180 B
JavaScript

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