1
0
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:
Alexander Skvortsov
2021-12-12 14:55:46 -05:00
committed by Alexander Skvortsov
parent c18dbbbe53
commit 9fc6a2333d

View File

@@ -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;