#211 TasksModel migration

This commit is contained in:
Daniel Brendel
2025-02-03 22:25:14 +01:00
parent f2ec489377
commit de8781207e
4 changed files with 21 additions and 25 deletions

View File

@@ -212,7 +212,7 @@ class TextBlockModule {
$icon = html_entity_decode('&#' . $icon, ENT_COMPAT | ENT_QUOTES);
ChatMsgModel::raw('INSERT INTO `' . ChatMsgModel::tableName() . '` (userId, message, sysmsg, created_at) VALUES(?, ?, 1, CURRENT_TIMESTAMP)', [
ChatMsgModel::raw('INSERT INTO `@THIS` (userId, message, sysmsg, created_at) VALUES(?, ?, 1, CURRENT_TIMESTAMP)', [
(($user) ? $user->get('id') : 0),
$icon . ' ' . $message
]);