Skip to content

Commit 3711931

Browse files
committed
fix: update todo juggler page
1 parent 9075bde commit 3711931

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/site/todo-tutorial-juggler.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ the `RepositoryMixin`:
3232
import {ApplicationConfig} from '@loopback/core';
3333
import {RestApplication} from '@loopback/rest';
3434
import {MySequence} from './sequence';
35-
import {db} from './datasources/db.datasource';
3635

3736
/* tslint:disable:no-unused-variable */
3837
// Binding and Booter imports are required to infer types for BootMixin!
@@ -66,18 +65,6 @@ export class TodoListApplication extends BootMixin(
6665
nested: true,
6766
},
6867
};
69-
70-
this.setupDatasources();
71-
}
72-
73-
setupDatasources() {
74-
// This will allow you to test your application without needing to
75-
// use a "real" datasource!
76-
const datasource =
77-
this.options && this.options.datasource
78-
? new juggler.DataSource(this.options.datasource)
79-
: db;
80-
this.dataSource(datasource);
8168
}
8269
}
8370
```

0 commit comments

Comments
 (0)