'use strict';

class ControllerAudit {

    constructor(manager) {
        this.manager = manager;
    }

    logSuccess(request, result) {
        return this.saveRegistry(request, result, null);
    }

    logFail(request, error) {
        return this.saveRegistry(request, null, error);
    }

    /* -------------------------------------------------------------------------
     * Save registry
     * ---------------------------------------------------------------------- */

    saveRegistry(request, result, err) {
        return Promise.resolve();
    }

}

module.exports = ControllerAudit;