UNPKG

@dotenvx/dotenvx-pro

Version:
17 lines (12 loc) 294 B
const Errors = require('./errors') const User = require('./../../db/user') class ValidatePublicKey { run () { const user = new User() if (user.publicKey().length < 1) { throw new Errors().missingUserPublicKey() } return true } } module.exports = ValidatePublicKey