Skip to content

Commit

Permalink
fixed-lint-errors-and-corrected-console-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Seckhen committed Sep 5, 2024
1 parent f853b13 commit c9073b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/upgrades/1.4.4/sound_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const soundMap = {
};

function updateGlobalSoundSettings(callback) {
console.log("updateGlobalSoundSettings");
console.log('Seckhen Ariel Andrade Cuellar');
const keys = ['chat-incoming', 'chat-outgoing', 'notification'];
db.getObject('settings:sounds', (err, settings) => {
if (err || !settings) {
Expand All @@ -31,19 +31,19 @@ function updateGlobalSoundSettings(callback) {
}

function updateUserSoundSettings(callback) {
console.log("updateUserSoundSettings");
console.log('Seckhen Ariel Andrade Cuellar');

const keys = ['notificationSound', 'incomingChatSound', 'outgoingChatSound'];

batch.processSortedSet('users:joindate', processUserBatch, callback);

function processUserBatch(ids, next) {
console.log("processUserBatch");
console.log('Seckhen Ariel Andrade Cuellar');
async.each(ids, updateUserSettings, next);
}

function updateUserSettings(uid, next) {
console.log("updateUserSettings");
console.log('Seckhen Ariel Andrade Cuellar');
db.getObject(`user:${uid}:settings`, (err, settings) => {
if (err || !settings) {
return next(err);
Expand Down

0 comments on commit c9073b7

Please sign in to comment.