Reduced database connections on startup

This commit is contained in:
Frank Schubert
2024-02-06 18:42:55 +01:00
parent 01f41c9eaa
commit afac1ff9c9
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -7,9 +7,9 @@ class WorkerFlag {
private $name = null;
private $value = null;
private $user = null;
public function __construct($worker_id, $name) {
$this->db = new FronkDB();
$this->db = FronkDB::singleton();
$user = new User($worker_id);
$this->user = $user;