|
|
@@ -252,7 +252,7 @@ class Presence extends Component
|
|
|
->where('calendar_id', $calendarId)
|
|
|
->where('user_id', $userId)
|
|
|
->where('status', '<>', 99)
|
|
|
- ->whereIn('id', function ($q) use ($calendarId, $userId, $ids) {
|
|
|
+ ->whereIn('id', function ($q) use ($calendarId, $userId) {
|
|
|
$q->selectRaw('MAX(id)')
|
|
|
->from('presences')
|
|
|
->where('calendar_id', $calendarId)
|
|
|
@@ -270,7 +270,6 @@ class Presence extends Component
|
|
|
->where('calendar_id', $calendarId)
|
|
|
->where('user_id', $userId)
|
|
|
->where('status', '<>', 99)
|
|
|
- ->where('member_id', $ids)
|
|
|
->delete();
|
|
|
|
|
|
// Ricreo le presenze per ogni membro contenuto in $ids
|