Skip to content

Commit

Permalink
fixup! update after rebase on master
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Apr 21, 2020
1 parent 2f2c023 commit 86fff28
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.

This file was deleted.

9 changes: 8 additions & 1 deletion examples/passport-login/src/datasources/db.datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@

import {inject} from '@loopback/core';
import {juggler} from '@loopback/repository';
import config from './db.datasource.config.json';

const config = {
name: 'db',
connector: 'memory',
localStorage: '',
file: './data/db.json',
};

export class DbDataSource extends juggler.DataSource {
static dataSourceName = 'db';
static readonly defaultConfig = config;

constructor(
@inject('datasources.config.db', {optional: true})
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ import {
ValueOrPromise,
} from '@loopback/core';
import {juggler} from '@loopback/repository';
import config from './pet-store.datasource.config.json';

const config = {
name: 'petStore',
connector: 'openapi',
spec: 'petstore-expanded.yaml',
validate: false,
positional: false,
};

@lifeCycleObserver('datasource')
export class PetStoreDataSource extends juggler.DataSource
implements LifeCycleObserver {
static dataSourceName = 'petStore';
static readonly defaultConfig = config;

constructor(
@inject('datasources.config.petStore', {optional: true})
Expand Down

0 comments on commit 86fff28

Please sign in to comment.