Versie 0.2.0
This commit is contained in:
commit
e77d8fd373
495 files changed
+81026
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// Generated, do not edit. sha256:57354eb3f01496daabc5a7208eceb7ac61ff77a12ab41b4a5effdfd3d90f3cc1
|
||||
import * as db from '../db.js';
|
||||
|
||||
export function getBaseCurrency() {
|
||||
const row = db.one(`SELECT baseCurrency FROM Portfolio WHERE id = 1`);
|
||||
if (!row) throw new Error('Portfolio row missing: this database has no unit of account.');
|
||||
return row.baseCurrency;
|
||||
}
|
||||
Reference in new issue
Block a user