mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added comment to bookshelf repo
refs bf00d7efc2 (r133860581)
- Making it very clear that the implementation choice was not optimal and was not meant as an "example" implementation. Currently the knex implementation has already taken over in our spike and the bookshelf repository implementation will be removed.
This commit is contained in:
parent
d9516ba234
commit
be04a8f7ae
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ export class SnippetRepositoryBookshelf implements SnippetsRepository {
|
|||
}
|
||||
|
||||
async getCount(filter?: string | undefined): Promise<number> {
|
||||
// @NOTE: this is an inefficient way to get the count. It's here as a stopgap to get
|
||||
// the moving pieces working. It should be either replaced with more efficient
|
||||
// query or the repository would be substituted with a knex implementation.
|
||||
const result = await this.models.Snippet.findPage({
|
||||
filter: filter
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue