chore: a couple missed files
This commit is contained in:
@@ -673,25 +673,25 @@ export const PlatformServiceMixin = {
|
||||
logger.debug(
|
||||
"[PlatformServiceMixin] Active identity is null (initial state), attempting auto-selection",
|
||||
);
|
||||
|
||||
|
||||
// Try to auto-select first available account
|
||||
const availableAccounts = await this.$dbQuery(
|
||||
"SELECT did FROM accounts ORDER BY dateCreated, did LIMIT 1",
|
||||
);
|
||||
|
||||
|
||||
if (availableAccounts?.values?.length) {
|
||||
const firstAccountDid = availableAccounts.values[0][0] as string;
|
||||
logger.debug(
|
||||
"[PlatformServiceMixin] Auto-selecting first account as active:",
|
||||
{ firstAccountDid },
|
||||
);
|
||||
|
||||
|
||||
// Update active_identity table with the first account
|
||||
await this.$dbExec(
|
||||
"UPDATE active_identity SET activeDid = ?, lastUpdated = datetime('now') WHERE id = 1",
|
||||
[firstAccountDid],
|
||||
);
|
||||
|
||||
|
||||
logger.debug(
|
||||
"[PlatformServiceMixin] Active identity auto-selected successfully",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user