From ec707b79e0a01068757f5b4ad6f481a40cbe10aa Mon Sep 17 00:00:00 2001 From: ZhangWei-KUMO Date: Sun, 15 Dec 2024 00:14:39 +0800 Subject: [PATCH] add new UI --- db/wechat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/wechat.js b/db/wechat.js index 99ee227..5c580cc 100644 --- a/db/wechat.js +++ b/db/wechat.js @@ -18,7 +18,7 @@ const db = new sqlite3.Database(dbFile, (err) => { wechatid TEXT NOT NULL, avatar TEXT NOT NULL, friends TEXT NOT NULL, - loginurl TEXT NOT NULL, + loginurl TEXT NOT NULL ) `, (err) => { if (err) { @@ -78,7 +78,7 @@ const db = new sqlite3.Database(dbFile, (err) => { // Helper function to update config -export function updateWechatConfig(config) { +export function saveWechatConfig(config) { const { username, wechatid,avatar, friends, loginurl } = config; return new Promise((resolve, reject) => { db.run(`UPDATE wechats SET username = ?,wechatid= ?, avatar = ?, friends = ?, loginurl = ? WHERE id = 1`,