Skip to content

Commit

Permalink
docs(readme): update model names for multiple connections
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <[email protected]>
  • Loading branch information
willsoto committed Jul 10, 2020
1 parent c67012b commit 2ae078d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Otherwise subsequent connections will override the previous ones.
inject: [ConfigService],
useFactory(config: ConfigService) {
return {
Model: BaseModel,
Model: BaseModel1,
config: {
client: "sqlite3",
useNullAsDefault: true,
Expand All @@ -192,7 +192,7 @@ Otherwise subsequent connections will override the previous ones.
ObjectionCoreModule.register({
// You must provide a name for the connection
name: "connection2",
Model: Book,
Model: BaseModel2,
config: {
client: "sqlite3",
useNullAsDefault: true,
Expand Down

0 comments on commit 2ae078d

Please sign in to comment.