Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript for models #3174

Merged
merged 18 commits into from
Dec 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update js/src/common/Model.ts
Co-authored-by: David Wheatley <hi@davwheat.dev>
  • Loading branch information
askvortsov1 and davwheat committed Dec 12, 2021
commit d82073c3a966fc610cc0e8fe4106e5202445fc9e
14 changes: 6 additions & 8 deletions js/src/common/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down