rename npub to pubkey

This commit is contained in:
counterweight 2025-02-12 15:31:35 +01:00
parent 8ebdae9459
commit 8ba6472525
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,10 @@ const NostrChallengeCompleted = sequelize.define('NostrChallengeCompleted', {
type: DataTypes.JSONB,
allowNull: false
},
public_key: {
type: DataTypes.STRING,
allowNull: false
},
created_at: {
type: DataTypes.DATE,
allowNull: false

View file

@ -63,6 +63,7 @@ async function completeNostrChallenge(
'uuid': uuid.v7(),
challenge: challenge,
signed_event: signedEvent,
public_key: signedEvent.pubkey,
created_at: new Date().toISOString()
}
);