Skip to content

Commit

Permalink
- Adding Integration charity for Donor Drive when in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Olivo committed Oct 19, 2024
1 parent 2361319 commit 2f7b1d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions MixItUp.Base/Services/External/DonorDriveService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,16 @@ public async Task<IEnumerable<DonorDriveCharity>> GetCharities()
if (charities != null)
{
charities.Add(DonorDriveService.CustomCharity);

if (ChannelSession.IsDebug())
{
charities.Add(new DonorDriveCharity()
{
displayName = "Integration",
programURL = "https://integrations.donordrive.com"
});
}

return charities.Where(c => !c.isDemo);
}
}
Expand Down

0 comments on commit 2f7b1d7

Please sign in to comment.