Skip to content

Commit

Permalink
Fixes ad announce issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JudahGabriel committed Apr 9, 2024
1 parent 2771a56 commit 724bb4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Chavah.NetCore/Controllers/SongsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public async Task<IActionResult> GetMp3ById(string songId)
return NotFound();
}

return Ok(song.Uri);
return Redirect(song.Uri.ToString());
}

[HttpPost]
Expand Down
2 changes: 1 addition & 1 deletion Chavah.NetCore/wwwroot/js/Services/AdAnnouncerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
playAdAnnouncement() {
// Sukkot 2023 ad: play it every even hour;
const announcementNumbers = [1, 2, 3, 4, 5];
const fileName = "ad" + announcementNumbers[Math.round(Math.random() * announcementNumbers.length)] + "x.mp3";
const fileName = "ad" + announcementNumbers[Math.floor(Math.random() * announcementNumbers.length)] + "x.mp3";

const songUrl = `${this.homeViewModel.soundEffects}/${fileName}`;
this.audioPlayer.playNewUri(songUrl);
Expand Down
Binary file modified MessiahsMusicFundDisbursement.xlsx
Binary file not shown.

0 comments on commit 724bb4c

Please sign in to comment.