inline with prod

This commit is contained in:
boufni95 2023-12-21 15:36:55 +01:00
parent e40071fca0
commit c5ab29ddcf

View file

@ -27,13 +27,14 @@ export const LoadDbSettingsFromEnv = (test = false): DbSettings => {
migrate: process.env.MIGRATE_DB === 'true' || false
}
}
export default async (settings: DbSettings) => {
const s = await new DataSource({
type: "sqlite",
database: settings.databaseFile,
// logging: true,
entities: [User, UserReceivingInvoice, UserReceivingAddress, AddressReceivingTransaction, UserInvoicePayment, UserTransactionPayment,
UserBasicAuth, UserEphemeralKey, Product, UserToUserPayment, Application, ApplicationUser, UserToUserPayment, RoutingEvent, BalanceEvent, ChannelBalanceEvent],
UserBasicAuth, UserEphemeralKey, Product, UserToUserPayment, Application, ApplicationUser, UserToUserPayment, /*RoutingEvent, BalanceEvent, ChannelBalanceEvent*/],
synchronize: true,
}).initialize()
const log = getLogger({})