mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
redirect to magnet page on edit success, unlock editor session
This commit is contained in:
parent
cf250cd7ee
commit
c95213e007
2 changed files with 32 additions and 2 deletions
|
|
@ -960,6 +960,17 @@ class Database {
|
|||
return $this->_db->lastInsertId();
|
||||
}
|
||||
|
||||
public function flushMagnetLock(int $magnetId) : int {
|
||||
|
||||
$this->_debug->query->update->total++;
|
||||
|
||||
$query = $this->_db->prepare('DELETE FROM `magnetLock` WHERE `magnetId` = ?');
|
||||
|
||||
$query->execute([$magnetId]);
|
||||
|
||||
return $query->rowCount();
|
||||
}
|
||||
|
||||
public function findLastMagnetLock(int $magnetId) {
|
||||
|
||||
$this->_debug->query->select->total++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue