1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

cast Min function values to int (#2459)

This commit is contained in:
Kyle Spearrin
2022-12-02 13:55:51 -05:00
committed by GitHub
parent a0ab60f984
commit 41db511872
3 changed files with 4 additions and 4 deletions

View File

@ -141,8 +141,8 @@ public class CollectionRepository : Repository<Core.Entities.Collection, Collect
CreationDate = collectionGroup.Key.CreationDate,
RevisionDate = collectionGroup.Key.RevisionDate,
ExternalId = collectionGroup.Key.ExternalId,
ReadOnly = collectionGroup.Min(c => c.ReadOnly),
HidePasswords = collectionGroup.Min(c => c.HidePasswords),
ReadOnly = Convert.ToBoolean(collectionGroup.Min(c => Convert.ToInt32(c.ReadOnly))),
HidePasswords = Convert.ToBoolean(collectionGroup.Min(c => Convert.ToInt32(c.HidePasswords))),
}).ToListAsync();
}
}