Skip to content

Get all unread notifications - #272

Merged
Gummibeer merged 3 commits into
fenos:masterfrom
ziishaned:master
Mar 31, 2017
Merged

Get all unread notifications#272
Gummibeer merged 3 commits into
fenos:masterfrom
ziishaned:master

Conversation

@ziishaned

Copy link
Copy Markdown
Contributor

No description provided.

@coveralls

coveralls commented Mar 30, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.08%) to 89.222% when pulling e5ec311 on zeeshanu:master into 0ec9d4e on fenos:master.

@Gummibeer Gummibeer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls change the marked things. After this we can merge it.

public function getNotificationsNotRead($limit = null, $order = 'desc')
{
$query = $this->getNotificationRelation()->orderBy('created_at', $order);
$query = $query->where('notifications.read', 0);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use the table name in queries cause this can be changed - so pls just where('read', 0)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @param string $order
* @return \Illuminate\Database\Eloquent\Collection
*/
public function getNotificationsNotRead($limit = null, $order = 'desc')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coveralls

coveralls commented Mar 31, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 90.4% when pulling b968ced on zeeshanu:master into 0ec9d4e on fenos:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 90.4% when pulling b968ced on zeeshanu:master into 0ec9d4e on fenos:master.

@Gummibeer Gummibeer self-assigned this Mar 31, 2017
@coveralls

coveralls commented Mar 31, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 90.4% when pulling ea156e3 on zeeshanu:master into 0ec9d4e on fenos:master.

@Gummibeer
Gummibeer merged commit 68a4e04 into fenos:master Mar 31, 2017
@Gummibeer

Copy link
Copy Markdown
Collaborator

Thanks for this PR - it's merged and tagged as v4.2.0
https://github.com/fenos/Notifynder/releases/tag/4.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants