wip: refactor
This commit is contained in:
@@ -36,12 +36,6 @@ export async function getActiveAccount() {
|
||||
'SELECT * FROM accounts WHERE is_active = 1;'
|
||||
);
|
||||
if (result.length > 0) {
|
||||
result[0]['follows'] = result[0].follows
|
||||
? JSON.parse(result[0].follows as unknown as string)
|
||||
: null;
|
||||
result[0]['network'] = result[0].network
|
||||
? JSON.parse(result[0].network as unknown as string)
|
||||
: null;
|
||||
return result[0];
|
||||
} else {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user