TryGhost/Ghost

View on GitHub
ghost/admin/app/adapters/email.js

Summary

Maintainability
A
2 hrs
Test Coverage
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;
        });
    }
}