Skip to content

Commit b1a71bc

Browse files
committed
Ordering the lookup.
1 parent f61f877 commit b1a71bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eFormAPI/eFormAPI.Web/Services/UserService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ public async Task<int> GetFirstUserIdInDb()
217217
{
218218
return await dbContext.Users
219219
.AsNoTracking()
220+
.OrderBy(x => x.Id)
220221
.Select(x => x.Id)
221222
.FirstOrDefaultAsync();
222223
}

0 commit comments

Comments
 (0)