From 3ce9c73b1d4a281fe1475206d49c4f436e0b992e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 21 May 2021 14:05:02 -0400 Subject: persist liquid conversion requests --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'index.js') 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"); -- cgit v1.2.3