-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/test coverage #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
976204d
683f740
3f1e769
2540446
0f9f625
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,11 @@ | ||
| import type { DynamicModule } from "@nestjs/common"; | ||
|
|
||
| export interface TaggableModuleOptions { | ||
| tableName?: string; | ||
| pivotTableName?: string; | ||
| } | ||
| export type TaggableModuleOptions = Record<string, never>; | ||
|
|
||
| export interface TaggableAsyncOptions { | ||
| imports?: (DynamicModule | Promise<DynamicModule> | any)[]; | ||
| useFactory: (...args: any[]) => TaggableModuleOptions | Promise<TaggableModuleOptions>; | ||
| useFactory: ( | ||
|
Comment on lines
1
to
+7
|
||
| ...args: any[] | ||
| ) => TaggableModuleOptions | Promise<TaggableModuleOptions>; | ||
| inject?: any[]; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unique index on
(slug, type)will not prevent duplicate slugs whentypeisNULLin many SQL databases (e.g., Postgres/MySQL allow multiple NULLs in a unique index). If the intent is to guarantee uniqueness for untyped tags as well, consider makingtypenon-nullable with a sentinel default (e.g., empty string) or adding an additional constraint/index strategy for the NULL case.