provider-ize profile service

This commit is contained in:
counterweight 2025-03-05 15:04:27 +01:00
parent 76e6bee411
commit ba9fa84407
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
4 changed files with 51 additions and 39 deletions

View file

@ -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;