provider-ize profile service
This commit is contained in:
parent
76e6bee411
commit
ba9fa84407
4 changed files with 51 additions and 39 deletions
|
|
@ -1,4 +1,7 @@
|
|||
const profileService = require('../services/profileService');
|
||||
const profileServiceProvider = require('../services/profileService');
|
||||
const ContactDetailsSet = require('../models/ContactDetailsSet');
|
||||
const NymSet = require('../models/NymSet');
|
||||
const profileService = profileServiceProvider(ContactDetailsSet, NymSet);
|
||||
|
||||
async function redirectIfMissingProfileDetailsMiddleware(req, res, next) {
|
||||
const publicKey = req.cookies.publicKey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue