mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Switched to knex repository
This commit is contained in:
parent
12e192cdae
commit
323e102def
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import {SnippetsController} from '../http/controllers/snippets.controller';
|
||||
import {SnippetRepositoryBookshelf} from '../core/snippets/snippets.repository.bookshelf';
|
||||
import {SnippetsService} from '../core/snippets/snippets.service';
|
||||
import {KnexSnippetsRepository} from '../db/knex/snippets.repository';
|
||||
|
||||
class AppModuleClass {}
|
||||
|
||||
|
@ -10,7 +11,7 @@ export const AppModule = {
|
|||
providers: [
|
||||
{
|
||||
provide: 'SnippetsRepository',
|
||||
useClass: SnippetRepositoryBookshelf
|
||||
useClass: KnexSnippetsRepository
|
||||
},
|
||||
SnippetsService
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue