-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add support for fuzzy search for /collections endpoint (#710) * feat: Add support for fuzzy search for /collections endpoint * feat: add if isPublished is "true" check * chore: remove commented line * Update src/Collection/Collection.router.spec.ts Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com> Signed-off-by: Juanma Hidalgo <juanma06@gmail.com> --------- Signed-off-by: Juanma Hidalgo <juanma06@gmail.com> Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com> * feat: use node:18.17.1-alpine --------- Signed-off-by: Juanma Hidalgo <juanma06@gmail.com> Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
1 parent
e5b9e4c
commit abd1e68
Showing
5 changed files
with
455 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate' | ||
|
||
export const shorthands: ColumnDefinitions | undefined = undefined | ||
|
||
export async function up(pgm: MigrationBuilder): Promise<void> { | ||
pgm.addExtension('pg_trgm', { ifNotExists: true }) | ||
pgm.sql('SET pg_trgm.similarity_threshold = 0.5') | ||
} | ||
|
||
export async function down(pgm: MigrationBuilder): Promise<void> { | ||
pgm.dropExtension('pg_trgm') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.