feat: NIP17 dms

This commit is contained in:
2024-12-05 16:20:53 +00:00
parent 0f9b439b78
commit 7270ecf6ba
6 changed files with 257 additions and 9 deletions

View File

@ -31,7 +31,7 @@ impl LNVpsDb for LNVpsDbMysql {
}
async fn upsert_user(&self, pubkey: &[u8; 32]) -> Result<u64> {
let res = sqlx::query("insert ignore into users(pubkey) values(?) returning id")
let res = sqlx::query("insert ignore into users(pubkey,contact_nip17) values(?,1) returning id")
.bind(pubkey.as_slice())
.fetch_optional(&self.db)
.await?;