aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index 723dbb6e..3c097896 100644
--- a/index.js
+++ b/index.js
@@ -7,6 +7,7 @@ const cors = require("cors");
const express = require("express");
const { Op } = require("sequelize");
const fs = require("fs");
+const persist = require("./lib/persist");
ah = require("express-async-handler");
@@ -19,11 +20,12 @@ fail = msg => {
};
challenge = {};
-convert = {};
logins = {};
sessions = {};
sockets = {};
+convert = persist("data/conversions.json");
+
if (config.bitcoin) networks.push("bitcoin");
if (config.liquid) networks.push("liquid");
if (config.lna) networks.push("lightning");