refactor: standardize quotation marks in pnpm-lock.yaml and improve code formatting across various components; enhance readability and maintain consistency in code style
This commit is contained in:
@@ -4,8 +4,12 @@ async function main() {
|
||||
const accountNumbers = process.argv.slice(2);
|
||||
|
||||
if (accountNumbers.length === 0) {
|
||||
console.error("Usage: tsx scripts/fix-account-balances.ts <accountNumber1> [accountNumber2] ...");
|
||||
console.error("Exemple: tsx scripts/fix-account-balances.ts 0748461N022 7555880857A");
|
||||
console.error(
|
||||
"Usage: tsx scripts/fix-account-balances.ts <accountNumber1> [accountNumber2] ...",
|
||||
);
|
||||
console.error(
|
||||
"Exemple: tsx scripts/fix-account-balances.ts 0748461N022 7555880857A",
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -47,7 +51,9 @@ async function main() {
|
||||
console.log(` Balance calculée: ${calculatedBalance}`);
|
||||
|
||||
if (Math.abs(account.balance - calculatedBalance) > 0.01) {
|
||||
console.log(`\n⚠️ Différence détectée: ${Math.abs(account.balance - calculatedBalance).toFixed(2)}`);
|
||||
console.log(
|
||||
`\n⚠️ Différence détectée: ${Math.abs(account.balance - calculatedBalance).toFixed(2)}`,
|
||||
);
|
||||
console.log(`Mise à jour du solde...`);
|
||||
|
||||
await prisma.account.update({
|
||||
@@ -68,9 +74,7 @@ async function main() {
|
||||
await prisma.$disconnect();
|
||||
}
|
||||
|
||||
main()
|
||||
.catch((e) => {
|
||||
console.error("Erreur:", e);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
main().catch((e) => {
|
||||
console.error("Erreur:", e);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user