Add missing db prefixes
This commit is contained in:
Родитель
37e1c5930b
Коммит
876a48cef7
|
@ -30,7 +30,7 @@ class AliasMapper extends Mapper {
|
|||
* @return Alias[]
|
||||
*/
|
||||
public function find($aliasId, $currentUserId) {
|
||||
$sql = 'select *PREFIX*mail_aliases.* from *PREFIX*mail_aliases join *PREFIX*mail_accounts on oc_mail_aliases.account_id = oc_mail_accounts.id where *PREFIX*mail_accounts.user_id = ? and *PREFIX*mail_aliases.id=?';
|
||||
$sql = 'select *PREFIX*mail_aliases.* from *PREFIX*mail_aliases join *PREFIX*mail_accounts on *PREFIX*mail_aliases.account_id = *PREFIX*mail_accounts.id where *PREFIX*mail_accounts.user_id = ? and *PREFIX*mail_aliases.id=?';
|
||||
return $this->findEntity($sql, [$currentUserId, $aliasId]);
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ class AliasMapper extends Mapper {
|
|||
* @return Alias[]
|
||||
*/
|
||||
public function findAll($accountId, $currentUserId) {
|
||||
$sql = 'select *PREFIX*mail_aliases.* from *PREFIX*mail_aliases join *PREFIX*mail_accounts on oc_mail_aliases.account_id = oc_mail_accounts.id where *PREFIX*mail_accounts.user_id = ? AND *PREFIX*mail_aliases.account_id=?';
|
||||
$sql = 'select *PREFIX*mail_aliases.* from *PREFIX*mail_aliases join *PREFIX*mail_accounts on *PREFIX*mail_aliases.account_id = *PREFIX*mail_accounts.id where *PREFIX*mail_accounts.user_id = ? AND *PREFIX*mail_aliases.account_id=?';
|
||||
$params = [
|
||||
$currentUserId,
|
||||
$accountId
|
||||
|
|
Загрузка…
Ссылка в новой задаче