Skip to content

Commit

Permalink
set inverse to null
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius authored and bp-cos committed Oct 25, 2023
1 parent af7e5d7 commit a3c175d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class FileModel extends BaseFileItem {
@hasMany('comment', { inverse: null })
comments!: AsyncHasMany<CommentModel>;

@belongsTo('osf-model', { polymorphic: true })
@belongsTo('osf-model', { inverse: null, polymorphic: true })
// eslint-disable-next-line max-len
target!: (AsyncBelongsTo<AbstractNodeModel> & AbstractNodeModel) | (AsyncBelongsTo<PreprintModel> & PreprintModel) | (AsyncBelongsTo<DraftNode> & DraftNode);

Expand Down

0 comments on commit a3c175d

Please sign in to comment.