Skip to content
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

chore(deps): update prisma monorepo to v5.9.1 #744

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/prisma-utils/index_.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export * from './externalToInternalDMMF'
* // ^^^^^^^^^^^^^^^^^^^^
* ```
*/
export const TypeScriptOrmCompoundUniquePropertyName = (fieldNames: string[]) => fieldNames.join('_')
export const TypeScriptOrmCompoundUniquePropertyName = (fieldNames: readonly string[]) => fieldNames.join('_')

/**
* Convert a Prisma model name as it would appear in a PSL file to its version as it would appear in the ORM `prismaClient.<model>.<operation>(...)`.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/prisma-utils/whereUniqueInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const createWhereUniqueInput = (source: RecordUnknown, model: DMMF.Model)
* 3. Exactly one field with an `@unique` annotation (if multiple, use first).
* 4. Multiple fields targeted by an `@@unique` clause.
*/
function getUniqueIdentifierFields(model: DMMF.Model): FieldName[] {
function getUniqueIdentifierFields(model: DMMF.Model): readonly FieldName[] {
// Try finding 1
const singleIdField = model.fields.find((f) => f.isId)

Expand Down
Loading
Loading