mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
034812ac02
refs https://github.com/TryGhost/Ghost/issues/14101 - `@classic` decorator is not required on adapter classes - small cleanup of Octane migration code
13 lines
349 B
JavaScript
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;
|
|
});
|
|
}
|
|
}
|