Fix pin notes with grid icon..

This commit is contained in:
Matias De lellis
2020-06-17 15:48:00 -03:00
parent ecfbcd42bc
commit d1587541c3
4 changed files with 13 additions and 13 deletions

View File

@@ -260,7 +260,7 @@ class NoteService {
foreach ($dbShares as $dbShare) {
$delete = true;
foreach ($shares as $share) {
if ($dbShare->getSharedUser() === $share['name']) {
if ($dbShare->getSharedUser() === $share['shared_user']) {
$delete = false;
break;
}
@@ -272,10 +272,10 @@ class NoteService {
// Add new shares
foreach ($shares as $share) {
if (!$this->noteShareMapper->existsByNoteAndUser($id, $share['name'])) {
if (!$this->noteShareMapper->existsByNoteAndUser($id, $share['shared_user'])) {
$hShare = new NoteShare();
$hShare->setNoteId($id);
$hShare->setSharedUser($share['name']);
$hShare->setSharedUser($share['shared_user']);
$this->noteShareMapper->insert($hShare);
}
}