vault/ui/app/models/auth-config.js
Chelsea Shaw a9e6704267
UI: Handle some deprecations (#28276)
* don't update the passed object directly
fixes deprecation https://deprecations.emberjs.com/id/setting-on-hash

* replace hasRecordForId with peekRecord -- ember-data:deprecate-has-record-for-id

* fix deprecation ember-data:deprecate-has-record-for-id

* update deprecation workflow
2024-09-17 14:59:01 -05:00

16 lines
301 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Model, { belongsTo } from '@ember-data/model';
export default Model.extend({
backend: belongsTo('auth-method', {
inverse: 'authConfigs',
readOnly: true,
async: false,
as: 'auth-config',
}),
});