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 44efff342d
commit d82073c3a9
No known key found for this signature in database
GPG Key ID: C4E3BBF9C3412B4C

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;