{"size": 450, "ext": "js", "max_stars_repo_path": "component/export/TimestampBehaviorExport.js", "max_stars_repo_name": "mkhorin/evado-module-studio", "max_stars_repo_stars_event_min_datetime": "2020-04-09T22:16:49.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-03T22:59:31.000Z", "max_issues_repo_path": "component/export/TimestampBehaviorExport.js", "max_issues_repo_name": "mkhorin/evado-module-studio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "component/export/TimestampBehaviorExport.js", "max_forks_repo_name": "mkhorin/evado-module-studio", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.125, "max_line_length": 74, "alphanum_fraction": 0.66}
/**
 * @copyright Copyright (c) 2020 Maxim Khorin <maksimovichu@gmail.com>
 */
'use strict';

const Base = require('./ParamExport');

module.exports = class TimestampBehaviorExport extends Base {

    async execute () {
        await this.model.prepareData();
        this.model.set('createdAttr', this.model.get('createdAttr.name'));
        this.model.set('updatedAttr', this.model.get('updatedAttr.name'));
        return super.execute();
    }
};