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
|
||||
.request(
|
||||
Object.assign(
|
||||
{
|
||||
method: 'DELETE',
|
||||
url: app.forum.attribute('apiUrl') + this.apiEndpoint(),
|
||||
body,
|
||||
},
|
||||
options
|
||||
)
|
||||
{
|
||||
method: 'DELETE',
|
||||
url: app.forum.attribute('apiUrl') + this.apiEndpoint(),
|
||||
body,
|
||||
...options,
|
||||
},
|
||||
)
|
||||
.then(() => {
|
||||
this.exists = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user