Ghost/ghost/admin/app/adapters/email.js
Kevin Ansfield 034812ac02 Dropped use of @classic decorator in adapters
refs https://github.com/TryGhost/Ghost/issues/14101

- `@classic` decorator is not required on adapter classes
- small cleanup of Octane migration code
2022-09-02 19:14:40 +01:00

13 lines
349 B
JavaScript

import ApplicationAdapter from './application';
export default class Email extends ApplicationAdapter {
retry(model) {
let url = `${this.buildURL('email', model.get('id'))}retry/`;
return this.ajax(url, 'PUT', {data: {}}).then((data) => {
this.store.pushPayload(data);
return model;
});
}
}