mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-15 13:45:04 -05:00
[fix] method to do an update in database
This commit is contained in:
parent
5cb5e8a9f2
commit
729373eb1a
@ -35,9 +35,9 @@ class EntryRepository
|
||||
//TODO don't hardcode the user ;)
|
||||
public function markAsRead($id, $userId = 1) {
|
||||
$sql = "UPDATE entries SET status = 'read' where id = ? AND user_id = ?";
|
||||
$entry = $this->db->fetchAll($sql, array($id, $userId));
|
||||
$count = $this->db->executeUpdate($sql, array($id, $userId));
|
||||
|
||||
return true;
|
||||
return $count;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user