Skip to content

Commit

Permalink
reverted removal of accountOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
opaduchak committed Dec 26, 2024
1 parent 0b136c9 commit 5ceffe8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/configured-addon.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Model, { attr } from '@ember-data/model';
import Model, { AsyncBelongsTo, attr, belongsTo } from '@ember-data/model';

import UserReferenceModel from 'ember-osf-web/models/user-reference';
import { ConnectedStorageOperationNames, OperationKwargs } from './addon-operation-invocation';
import AuthorizedAccountModel, { ConnectedCapabilities } from './authorized-account';

Expand All @@ -20,6 +21,9 @@ export default class ConfiguredAddonModel extends Model {
@attr('array') connectedOperationNames!: ConnectedStorageOperationNames[];
@attr('fixstring') rootFolder!: string;

@belongsTo('user-reference', { inverse: null })
accountOwner!: AsyncBelongsTo<UserReferenceModel> & UserReferenceModel;

@attr('boolean')
currentUserIsOwner!: boolean;

Expand Down

0 comments on commit 5ceffe8

Please sign in to comment.