server: 去除msg_type not null限制

This commit is contained in:
2021-11-10 00:45:17 +08:00
parent 136309ebc0
commit 147972e96e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ async function initDB(dbFile) {
`CREATE TABLE IF NOT EXISTS msg (
msg_id TEXT NOT NULL,
create_time INTEGER NOT NULL,
msg_type INTEGER NOT NULL,
msg_type INTEGER,
composed_type TEXT NOT NULL,
content TEXT,
from_name TEXT,
+1 -1
View File
@@ -208,7 +208,7 @@ async function sendMessage(_, { type, target, data, filename }) {
messageID: composedID,
createTimestamp: timestamp,
type,
messageType: null,
messageType: 0,
fromName: bot.user.NickName,
fromNickName: bot.user.NickName,
toName: getDisplayName(targetContact),