mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 12:16:31 +08:00
Update js/src/common/Model.ts
Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
parent
44efff342d
commit
d82073c3a9
|
@ -239,14 +239,12 @@ export default abstract class Model {
|
||||||
|
|
||||||
return app
|
return app
|
||||||
.request(
|
.request(
|
||||||
Object.assign(
|
{
|
||||||
{
|
method: 'DELETE',
|
||||||
method: 'DELETE',
|
url: app.forum.attribute('apiUrl') + this.apiEndpoint(),
|
||||||
url: app.forum.attribute('apiUrl') + this.apiEndpoint(),
|
body,
|
||||||
body,
|
...options,
|
||||||
},
|
},
|
||||||
options
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.exists = false;
|
this.exists = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user