mirror of
https://github.com/flarum/core.git
synced 2025-07-17 06:41:21 +02:00
Update js/src/common/Model.ts
Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
committed by
Alexander Skvortsov
parent
c18dbbbe53
commit
9fc6a2333d
@@ -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;
|
||||||
|
Reference in New Issue
Block a user