fix: queries with the new base mapper in BoardMapper

Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Max
2022-02-09 15:38:33 +01:00
committed by Julius Härtl
parent 4d3dabb94e
commit b6340e54c3

View File

@@ -486,8 +486,8 @@ class BoardMapper extends QBMapper implements IPermissionMapper {
'owner' => $ownerId,
'newOwner' => $newOwnerId
];
$sql = "UPDATE `{$this->tableName}` SET `owner` = :newOwner WHERE `owner` = :owner";
$stmt = $this->execute($sql, $params);
$sql = "UPDATE `*PREFIX*{$this->tableName}` SET `owner` = :newOwner WHERE `owner` = :owner";
$stmt = $this->db->executeQuery($sql, $params);
$stmt->closeCursor();
}
}