- Use a detailsservice file to associate this with user
- update frontend to allow searching through existing qr codes
public void addQrCodeToUser(String personEmail, Long qrCodeId) {
Person person = personJpaRepository.findByEmail(personEmail);
if (person != null) { // verify person
Optional<QrCode> qrCode = QrCodeJpaRepository.findById(qrCodeId);
if (qrCode != null) { // verify role
person.getQrCodes().add(qrCode.get());
}
}
}