Skip to content

Commit

Permalink
- Reldens - v4.0.0-beta.33
Browse files Browse the repository at this point in the history
- Merge pull request #238 from damian-pastorini/v4.0.0-beta.33
  • Loading branch information
damian-pastorini authored Feb 10, 2024
2 parents a2d93b5 + 0fa6737 commit 931a451
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/audio/client/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ class AudioManager

findAudioInObjectKey(audioKey, audiosObject)
{
if(sc.hasOwn(audiosObject, audioKey)){
return {audio: audiosObject[audioKey], marker: false};
}
let objectKeys = Object.keys(audiosObject);
if(0 === objectKeys.length){
return false;
}
if(sc.hasOwn(audiosObject, audioKey)){
return {audio: audiosObject[audioKey], marker: false};
}
for(let i of objectKeys){
let audio = audiosObject[i];
if(sc.hasOwn(audio.audioInstance.markers, audioKey)){
Expand Down
2 changes: 1 addition & 1 deletion migrations/production/reldens-sample-data-v4.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ REPLACE INTO `ads_types` (`id`, `key`) VALUES

REPLACE INTO `audio` (`id`, `audio_key`, `files_name`, `config`, `room_id`, `category_id`, `enabled`) VALUES
(3, 'footstep', 'footstep.mp3', NULL, NULL, 3, 1),
(4, 'ReldensTownAudio', 'reldens-town.mp3', '', 4, 1, 1);
(4, 'reldens-town', 'reldens-town.mp3', '', 4, 1, 1);

REPLACE INTO `audio_categories` (`id`, `category_key`, `category_label`, `enabled`, `single_audio`) VALUES
(1, 'music', 'Music', 1, 1),
Expand Down

0 comments on commit 931a451

Please sign in to comment.