Skip to content

Commit

Permalink
Federated query fixed (#128)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Brands (RiwaAdmin) <[email protected]>
  • Loading branch information
rbrands and Robert Brands (RiwaAdmin) authored Sep 15, 2023
1 parent 694b453 commit fb50d71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion MeetUpFunctions/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static class Constants
public const string DEFAULT_DISCLAIMER = "Disclaimer";
public const string DEFAULT_GUEST_DISCLAIMER = "Guest Disclaimer";

public const string VERSION = "2023-09-10";
public const string VERSION = "2023-09-15";
public const int ADMINOVERBOOKFACTOR = 1; // no overbooking any more, because not needed

public const int LOG_TTL = 30 * 24 * 3600; // 30 days TTL for Log items
Expand Down
9 changes: 1 addition & 8 deletions MeetUpFunctions/GetExtendedCalendarItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,7 @@ public async Task<IActionResult> Run(
if (!String.IsNullOrEmpty(serverSettings.Federation))
{
IEnumerable<CalendarItem> rawListOfFederatedCalendarItems;
if (null == tenant)
{
rawListOfFederatedCalendarItems = await _cosmosRepository.GetItems(d => d.StartDate > compareDate && (d.Tenant ?? String.Empty) == String.Empty && d.Federation == serverSettings.Federation);
}
else
{
rawListOfFederatedCalendarItems = await _cosmosRepository.GetItems(d => d.StartDate > compareDate && d.Tenant.Equals(tenant) && d.Federation == serverSettings.Federation);
}
rawListOfFederatedCalendarItems = await _cosmosRepository.GetItems(d => d.StartDate > compareDate && d.Federation.Equals(serverSettings.Federation));
rawCalendarItemsWithFederatedOnes = rawListOfCalendarItems.Concat(rawListOfFederatedCalendarItems);
}
List<ExtendedCalendarItem> resultCalendarItems = new List<ExtendedCalendarItem>(10);
Expand Down
2 changes: 1 addition & 1 deletion MeetUpPlanner/Client/Pages/About.razor
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>

@code {
private const string clientVersion = "2023-09-10";
private const string clientVersion = "2023-09-15";
private string serverVersion = "tbd";
private string functionsVersion = "tbd";

Expand Down
2 changes: 1 addition & 1 deletion MeetUpPlanner/Server/Controllers/UtilController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class UtilController : ControllerBase
{
private readonly MeetUpFunctions _meetUpFunctions;
private readonly ILogger<UtilController> logger;
const string serverVersion = "2023-09-10";
const string serverVersion = "2023-09-15";
string functionsVersion = "tbd";

public UtilController(ILogger<UtilController> logger, MeetUpFunctions meetUpFunctions)
Expand Down

0 comments on commit fb50d71

Please sign in to comment.