Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(manager): include defaults in singular read
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Trecy Tobias <19201.tobias.kennethtrecy.c@gmail.com>
  • Loading branch information
lemredd and KennethTrecy committed Nov 6, 2022
1 parent f10947d commit b7a0696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion database/managers/tag.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Manager from "./tag"

describe("Database Manager: Miscellaneous semester operations", () => {
describe("Database Manager: Miscellaneous tag operations", () => {
it("can get sortable columns", () => {
// Include in test to alert in case there are new columns to decide whether to expose or not
const manager = new Manager()
Expand Down
7 changes: 7 additions & 0 deletions database/managers/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ export default class extends BaseManager<

get transformer(): Transformer { return new Transformer() }

get singleReadPipeline(): Pipe<FindAndCountOptions<Model>, TagQueryParameters>[] {
return [
includeDefaults,
...super.singleReadPipeline
]
}

get listPipeline(): Pipe<FindAndCountOptions<Model>, TagQueryParameters>[] {
return [
siftBySlug,
Expand Down

0 comments on commit b7a0696

Please sign in to comment.