API: Set "dismissed" instead of "seen"

This commit is contained in:
Michael
2021-12-28 20:38:18 +00:00
parent c371d2ec82
commit f7e859ec2c
10 changed files with 36 additions and 13 deletions

View File

@@ -40,4 +40,11 @@ class Notifications extends BaseCollection
$Notification->setSeen();
});
}
public function setDismissed(): Notifications
{
return $this->map(function (Entity\Notification $Notification) {
$Notification->setDismissed();
});
}
}