Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Remove old private db lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Apr 20, 2021
1 parent fa5d989 commit 188c532
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions db/views.js
Expand Up @@ -227,8 +227,6 @@ export function setup () {

define('ctzn.network/notifications-count-view', async (auth, opts) => {
if (!auth) throw new errors.SessionError()
const privateDb = db.privateDbs.get(auth.userId)
if (!privateDb) throw new errors.NotFoundError('User database not found')
return {count: await countNotications(auth, opts)}
})

Expand Down

0 comments on commit 188c532

Please sign in to comment.