security: remove .env from tracking (contains secrets)
This commit is contained in:
@@ -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('*');
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user