inline with prod
This commit is contained in:
parent
e40071fca0
commit
c5ab29ddcf
1 changed files with 2 additions and 1 deletions
|
|
@ -27,13 +27,14 @@ export const LoadDbSettingsFromEnv = (test = false): DbSettings => {
|
||||||
migrate: process.env.MIGRATE_DB === 'true' || false
|
migrate: process.env.MIGRATE_DB === 'true' || false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async (settings: DbSettings) => {
|
export default async (settings: DbSettings) => {
|
||||||
const s = await new DataSource({
|
const s = await new DataSource({
|
||||||
type: "sqlite",
|
type: "sqlite",
|
||||||
database: settings.databaseFile,
|
database: settings.databaseFile,
|
||||||
// logging: true,
|
// logging: true,
|
||||||
entities: [User, UserReceivingInvoice, UserReceivingAddress, AddressReceivingTransaction, UserInvoicePayment, UserTransactionPayment,
|
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,
|
synchronize: true,
|
||||||
}).initialize()
|
}).initialize()
|
||||||
const log = getLogger({})
|
const log = getLogger({})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue