security: remove .env from tracking (contains secrets)

This commit is contained in:
ZOMBIIIIIII
2026-05-11 18:15:21 +03:00
parent 295c3a9d6d
commit 64696b334c
26 changed files with 1840 additions and 128 deletions

View File

@@ -1,3 +1,4 @@
import type { Knex } from 'knex';
import { db } from '../config/database';
import { generateUlid } from '../utils/ulid';
@@ -20,10 +21,11 @@ export const WalletModel = {
},
async createMany(
wallets: { user_id: string; chain: string; address: string; derivation_path: string }[]
wallets: { user_id: string; chain: string; address: string; derivation_path: string }[],
trx?: Knex.Transaction,
): Promise<WalletRow[]> {
const withIds = wallets.map((w) => ({ id: generateUlid(), ...w }));
return db('wallets').insert(withIds).returning('*');
return (trx || db)('wallets').insert(withIds).returning('*');
},
/**