well-goknown/nostr/helpers.go
2024-08-17 15:26:53 -04:00

12 lines
234 B
Go

package nostr
func checknPubsInDb(npubs []string) bool {
var uid int
for _, npub := range npubs {
if err := DB.QueryRow("SELECT id FROM users WHERE pubkey=$1", npub).Scan(&uid); err == nil {
return true
}
}
return false
}