Skip to content

Commit

Permalink
add new UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangWei-KUMO committed Dec 14, 2024
1 parent 01a4c0b commit ec707b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/wechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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`,
Expand Down

0 comments on commit ec707b7

Please sign in to comment.