renames
This commit is contained in:
parent
619503e799
commit
2b6853bf11
5 changed files with 11 additions and 11 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue