This commit is contained in:
counterweight 2025-02-12 16:18:27 +01:00
parent 619503e799
commit 2b6853bf11
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 11 additions and 11 deletions

View file

@ -2,11 +2,11 @@ const uuid = require("uuid");
const PublicKeySignedUp = require('../models/PublicKeySignedUp');
const appInviteService = require('./appInviteService');
const invitesService = require('./invitesService');
async function signUpPublicKey(inviteUuid, publicKey) {
if (await appInviteService.isAppInviteSpent(inviteUuid)) {
if (await invitesService.isAppInviteSpent(inviteUuid)) {
throw new Error("Can't invite npub, invite is already spent.");
}