♻️ Remove the Sphere project depends on the Pass project. Move to the shared project instead.
This commit is contained in:
@@ -7,7 +7,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
using NodaTime;
|
||||
using NodaTime.Serialization.Protobuf;
|
||||
using VerificationMark = DysonNetwork.Shared.Data.VerificationMark;
|
||||
using Account = DysonNetwork.Pass.Account.Account;
|
||||
using Account = DysonNetwork.Shared.Data.AccountReference;
|
||||
|
||||
namespace DysonNetwork.Sphere.Publisher;
|
||||
|
||||
|
@@ -34,7 +34,7 @@ public class PublisherController(
|
||||
var account = await accounts.GetAccountAsync(
|
||||
new GetAccountRequest { Id = publisher.AccountId.Value.ToString() }
|
||||
);
|
||||
publisher.Account = Pass.Account.Account.FromProtoValue(account);
|
||||
publisher.Account = AccountReference.FromProtoValue(account);
|
||||
|
||||
return Ok(publisher);
|
||||
}
|
||||
|
@@ -382,7 +382,7 @@ public class PublisherService(
|
||||
public async Task<PublisherMember> LoadMemberAccount(PublisherMember member)
|
||||
{
|
||||
var account = await accountsHelper.GetAccount(member.AccountId);
|
||||
member.Account = Pass.Account.Account.FromProtoValue(account);
|
||||
member.Account = AccountReference.FromProtoValue(account);
|
||||
return member;
|
||||
}
|
||||
|
||||
@@ -394,7 +394,7 @@ public class PublisherService(
|
||||
return members.Select(m =>
|
||||
{
|
||||
if (accounts.TryGetValue(m.AccountId, out var account))
|
||||
m.Account = Pass.Account.Account.FromProtoValue(account);
|
||||
m.Account = AccountReference.FromProtoValue(account);
|
||||
return m;
|
||||
}).ToList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user