mirror of
https://github.com/flarum/core.git
synced 2025-07-16 14:26:25 +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
|
||||
.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;
|
||||
|
Reference in New Issue
Block a user