]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/ExpireConversations.php
Update copyright
[friendica.git] / src / Worker / ExpireConversations.php
index aedf7cea518987467cfffcb56c55bf9c277570d4..84f3bfd591d21862189a48b663f03989f3a50f46 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -36,7 +36,6 @@ class ExpireConversations
                        return;
                }
 
-               DBA::p("DELETE FROM `conversation` WHERE `received` < UTC_TIMESTAMP() - INTERVAL ? DAY", $days);
-
+               DBA::delete('conversation', ["`received` < UTC_TIMESTAMP() - INTERVAL ? DAY", $days]);
        }
 }