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