mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-04-02 08:58:27 +02:00
catch exception if user is not logged in
This commit is contained in:
parent
20c605e245
commit
af2f4cd8e3
@ -413,7 +413,12 @@ async function checkuser(msg){
|
||||
|
||||
async function get_user_from_search(name){
|
||||
name = "\"name\":" + name
|
||||
let dbclient = store.state.dbclient
|
||||
|
||||
if (store.state.dbclient.database === undefined){
|
||||
console.log("not logged in, not getting profile suggestions")
|
||||
return []
|
||||
}
|
||||
let dbclient = store.state.dbclient
|
||||
let profiles = []
|
||||
let filter1 = new Filter().kind(0).search(name)
|
||||
let evts = await dbclient.database.query([filter1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user