minor fixes

This commit is contained in:
Believethehype 2024-02-08 10:32:09 +01:00
parent 94e471fdf8
commit 9c8e4c61f0
2 changed files with 11 additions and 3 deletions
ui/noogle/src/components

@ -4,7 +4,7 @@ import Donate from "@/components/Donate.vue";
export default {
name: "Home",
components: {Donate, Nip07, ImageGeneration}
components: {Donate, ImageGeneration}
}
</script>

@ -94,8 +94,8 @@ async function send_search_request(msg) {
let content = "NIP 90 Search request"
let kind = 5302
console.log((datefrom.value/1000).toFixed(0))
console.log((dateto.value/1000).toFixed(0))
//console.log((datefrom.value/1000).toFixed(0))
//console.log((dateto.value/1000).toFixed(0))
let tags = [
["i", msg, "text"],
["param", "max_results", "150"],
@ -129,6 +129,14 @@ async function send_search_request(msg) {
tags_t.push(Tag.parse(tag))
}
let evt = new EventBuilder(kind, content, tags_t)
try{
res = await client.sendEventBuilder(evt)
}
catch(error){
console.log(error)
}
res = await client.sendEventBuilder(evt)
requestid = res.toHex()
}