Skip to content

Commit

Permalink
Small improvements to retrieve notifications count with timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistegreve committed Jan 10, 2023
1 parent 9a74f1d commit 5c980bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,8 @@ export class Orbis {
user_did: this.session.id,
notif_type: options.type,
q_context: options.context ? options.context : null,
q_conversation_id: options.conversation_id ? options.conversation_id : null
q_conversation_id: options.conversation_id ? options.conversation_id : null,
q_last_read: options.last_read_timestamp ? options.last_read_timestamp : 0
}).single();
return({ data, error, status });
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orbisclub/orbis-sdk",
"version": "0.4.10",
"version": "0.4.11",
"description": "Official package to implement quickly an Orbis powered decentralized social layer within your application.",
"author": "Baptiste Grève",
"license": "ISC",
Expand Down

0 comments on commit 5c980bd

Please sign in to comment.