2021-05-23 20:42:02 +00:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const errors_1 = require("../../helpers/errors");
|
|
|
|
const main_1 = require("../../main");
|
|
|
|
const eventName = 'saveSettings';
|
|
|
|
const cb = (data, _, __) => {
|
|
|
|
const { settings, spotifySettings } = data;
|
2021-05-29 10:06:26 +00:00
|
|
|
main_1.saveSettings(settings, spotifySettings);
|
2021-05-23 20:42:02 +00:00
|
|
|
errors_1.consoleInfo('Settings saved');
|
|
|
|
main_1.listener.send('updateSettings', { settings, spotifySettings });
|
|
|
|
};
|
|
|
|
exports.default = { eventName, cb };
|