mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
13 lines
216 B
JavaScript
13 lines
216 B
JavaScript
|
import { runQuery } from 'queries';
|
||
|
import prisma from 'lib/db';
|
||
|
|
||
|
export async function deleteAccount(user_id) {
|
||
|
return runQuery(
|
||
|
prisma.account.delete({
|
||
|
where: {
|
||
|
user_id,
|
||
|
},
|
||
|
}),
|
||
|
);
|
||
|
}
|