minor fixes for deletion compatibility
This commit is contained in:
@@ -121,7 +121,7 @@ CREATE TABLE app_room (
|
||||
room_id INT AUTO_INCREMENT,
|
||||
room_name VARCHAR(255) NOT NULL,
|
||||
owner_id INT NOT NULL,
|
||||
message_id INT NOT NULL,
|
||||
message_id INT,
|
||||
room_type INT NOT NULL DEFAULT 0,
|
||||
lastUpdate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
|
||||
PRIMARY KEY (room_id),
|
||||
|
||||
@@ -35,7 +35,6 @@ export async function getMailbox(mailboxId: number) {
|
||||
}
|
||||
|
||||
export function updateMailbox(mailboxId: number, uidnext: number) {
|
||||
console.log("updateMailbox", mailboxId, uidnext);
|
||||
const query = `UPDATE mailbox SET uidnext = ? WHERE mailbox_id = ?`;
|
||||
const values = [uidnext, mailboxId];
|
||||
execQuery(query, values);
|
||||
|
||||
Reference in New Issue
Block a user