mirror of
https://codeberg.org/MarkusThielker/finances.git
synced 2025-04-12 05:08:43 +00:00
N-FIN-18: remove environment condition
This commit is contained in:
parent
48384b7687
commit
986db250cf
1 changed files with 18 additions and 19 deletions
|
@ -20,26 +20,25 @@ export default async function AccountPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let paymentCount = 0;
|
let paymentCount = 0;
|
||||||
let entityCount = 0;
|
paymentCount = await prismaClient.payment.count({
|
||||||
let categoryCount = 0;
|
where: {
|
||||||
|
userId: user.id,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
let entityCount = 0;
|
||||||
paymentCount = await prismaClient.payment.count({
|
entityCount = await prismaClient.entity.count({
|
||||||
where: {
|
where: {
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
entityCount = await prismaClient.entity.count({
|
|
||||||
where: {
|
let categoryCount = 0;
|
||||||
userId: user.id,
|
categoryCount = await prismaClient.category.count({
|
||||||
},
|
where: {
|
||||||
});
|
userId: user.id,
|
||||||
categoryCount = await prismaClient.category.count({
|
},
|
||||||
where: {
|
});
|
||||||
userId: user.id,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
|
|
Loading…
Add table
Reference in a new issue