Skip to content

Commit 7c7c927

Browse files
committed
Merge branch 'release/0.0.22'
2 parents 160a895 + 2a403ad commit 7c7c927

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<!-- Solution settings -->
4-
<Version>0.0.21</Version>
4+
<Version>0.0.22</Version>
55
<LangVersion>latest</LangVersion>
66
<TargetFramework>net9.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>

src/Borealis.Core/Services/GiftCodeService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public async Task<Result> AddGiftCodeAsync(string giftCode, string source, Cance
6767

6868
var player = await _context
6969
.Players
70-
.OrderByDescending(x => x.ExternalId)
70+
.Where(x => x.IsInAlliance || x.ForceRedeemGiftCodes)
71+
.OrderBy(x => EF.Functions.Random())
7172
.FirstOrDefaultAsync(cancellationToken);
7273

7374
var isExpired = false;

0 commit comments

Comments
 (0)