Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into add-details-sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed Jan 8, 2025
2 parents 60c2072 + ed5bdc9 commit 5f21d50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Speckle.Sdk/Credentials/AccountManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public IEnumerable<Account> GetAccounts()
{
static bool IsInvalid(Account ac) => ac.userInfo == null || ac.serverInfo == null;

var sqlAccounts = _accountStorage.GetAllObjects().Select(x => JsonConvert.DeserializeObject<Account>(x.Item2));
var sqlAccounts = _accountStorage.GetAllObjects().Select(x => JsonConvert.DeserializeObject<Account>(x.Json));
var localAccounts = GetLocalAccounts();

foreach (var acc in sqlAccounts)
Expand Down Expand Up @@ -651,7 +651,7 @@ private void TryLockAccountAddFlow(TimeSpan timespan)
}

// this uses the SQLite transport to store locks
var lockIds = _accountAddLockStorage.GetAllObjects().Select(x => x.Item2).OrderByDescending(d => d).ToList();
var lockIds = _accountAddLockStorage.GetAllObjects().Select(x => x.Id).OrderByDescending(d => d).ToList();
var now = DateTime.Now;
foreach (var l in lockIds)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Speckle.Sdk/SQLite/CacheDbCommandPool.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Concurrent;
using System.Collections.Concurrent;
using Microsoft.Data.Sqlite;

namespace Speckle.Sdk.SQLite;
Expand Down
2 changes: 1 addition & 1 deletion src/Speckle.Sdk/SQLite/SQLiteJsonCacheManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ content TEXT
c.Close();
}

public IReadOnlyCollection<(string, string)> GetAllObjects() =>
public IReadOnlyCollection<(string Id, string Json)> GetAllObjects() =>
_pool.Use(
CacheOperation.GetAll,
command =>
Expand Down

0 comments on commit 5f21d50

Please sign in to comment.