Skip to content

Commit

Permalink
make clients and apiScopes optional when creating delegation type
Browse files Browse the repository at this point in the history
  • Loading branch information
Herdismaria committed May 22, 2024
1 parent 9a4b043 commit b698983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ export class DelegationTypeModel extends Model<
description!: string

@BelongsToMany(() => Client, () => ClientDelegationType)
clients!: Client[]
clients!: CreationOptional<Client[]>

@BelongsToMany(() => ApiScope, () => ApiScopeDelegationType)
apiScopes!: ApiScope[]
apiScopes!: CreationOptional<ApiScope[]>

@CreatedAt
readonly created!: CreationOptional<Date>
Expand Down
2 changes: 0 additions & 2 deletions libs/services/auth/testing/src/fixtures/fixture-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,7 @@ export class FixtureFactory {
name,
description,
providerId: delegationProvider.id,
clients: [],
provider: delegationProvider,
apiScopes: [],
},
},
)
Expand Down

0 comments on commit b698983

Please sign in to comment.