💥 Switch all id to uuid

This commit is contained in:
2025-05-14 20:03:47 +08:00
parent aeeed24290
commit 9576870373
53 changed files with 765 additions and 24171 deletions

View File

@ -124,9 +124,9 @@ public class RelationshipService(AppDatabase db, PermissionService pm, IMemoryCa
return relationship;
}
public async Task<List<long>> ListAccountFriends(Account account)
public async Task<List<Guid>> ListAccountFriends(Account account)
{
if (!cache.TryGetValue($"UserFriends_{account.Id}", out List<long>? friends))
if (!cache.TryGetValue($"UserFriends_{account.Id}", out List<Guid>? friends))
{
friends = await db.AccountRelationships
.Where(r => r.RelatedId == account.Id)