mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
15 lines
340 B
JavaScript
15 lines
340 B
JavaScript
|
import ApplicationAdapter from './application';
|
||
|
|
||
|
export default ApplicationAdapter.extend({
|
||
|
|
||
|
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;
|
||
|
});
|
||
|
}
|
||
|
|
||
|
});
|