mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-27 14:29:39 +00:00
upgrade prettier
This commit is contained in:
parent
75f5ec4393
commit
b65fd5568a
@ -16,9 +16,10 @@ const AdminProduct = Discourse.Model.extend({
|
||||
active: this.active
|
||||
};
|
||||
|
||||
return ajax("/patrons/admin/products", { method: "post", data }).then(
|
||||
product => AdminProduct.create(product)
|
||||
);
|
||||
return ajax("/patrons/admin/products", {
|
||||
method: "post",
|
||||
data
|
||||
}).then(product => AdminProduct.create(product));
|
||||
},
|
||||
|
||||
update() {
|
||||
@ -44,9 +45,9 @@ AdminProduct.reopenClass({
|
||||
},
|
||||
|
||||
find(id) {
|
||||
return ajax(`/patrons/admin/products/${id}`, { method: "get" }).then(
|
||||
product => AdminProduct.create(product)
|
||||
);
|
||||
return ajax(`/patrons/admin/products/${id}`, {
|
||||
method: "get"
|
||||
}).then(product => AdminProduct.create(product));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -28,9 +28,10 @@ const AdminSubscription = Discourse.Model.extend({
|
||||
|
||||
AdminSubscription.reopenClass({
|
||||
find() {
|
||||
return ajax("/patrons/admin/subscriptions", { method: "get" }).then(
|
||||
result =>
|
||||
result.data.map(subscription => AdminSubscription.create(subscription))
|
||||
return ajax("/patrons/admin/subscriptions", {
|
||||
method: "get"
|
||||
}).then(result =>
|
||||
result.data.map(subscription => AdminSubscription.create(subscription))
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user