fix: from merge
This commit is contained in:
@@ -749,7 +749,7 @@ export const PlatformServiceMixin = {
|
||||
const result = await this.$dbQuery(
|
||||
"SELECT did FROM accounts ORDER BY dateCreated, did",
|
||||
);
|
||||
return result?.values?.map((row) => row[0] as string) || [];
|
||||
return result?.values?.map((row: unknown[]) => row[0] as string) || [];
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -1502,24 +1502,6 @@ export const PlatformServiceMixin = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Get all account DIDs - $getAllAccountDids()
|
||||
* Retrieves all account DIDs from the accounts table
|
||||
* @returns Promise<string[]> Array of account DIDs
|
||||
*/
|
||||
async $getAllAccountDids(): Promise<string[]> {
|
||||
try {
|
||||
const accounts = await this.$query<Account>("SELECT did FROM accounts");
|
||||
return accounts.map((account) => account.did);
|
||||
} catch (error) {
|
||||
logger.error(
|
||||
"[PlatformServiceMixin] Error getting all account DIDs:",
|
||||
error,
|
||||
);
|
||||
return [];
|
||||
}
|
||||
},
|
||||
|
||||
// =================================================
|
||||
// TEMP TABLE METHODS (for temporary storage)
|
||||
// =================================================
|
||||
|
||||
Reference in New Issue
Block a user