11 lines
234 B
Go
11 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
|
|
}
|