fix: scope model

This commit is contained in:
FoskyM 2023-10-01 19:54:19 +08:00
parent 811957b468
commit 3b5354c4af
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C

View file

@ -2,6 +2,8 @@ import Model from 'flarum/common/Model';
export default class Client extends Model {
scope = Model.attribute('scope');
resource_path = Model.attribute('resource_path');
method = Model.attribute('method');
is_default = Model.attribute('is_default', value => value === 1);
scope_name = Model.attribute('scope_name');
scope_icon = Model.attribute('scope_icon');