Added new end point, edited getEmails to be Async all and return 202 status code
This commit is contained in:
@@ -30,8 +30,9 @@ public class URLVerificationService {
|
||||
|
||||
public URLEntity getURLEntityByQRCodeId(UUID qrCodeId) {
|
||||
logger.info("qrCodeId retrieving: {}", qrCodeId);
|
||||
return urlRepository.findByQrCodeId(qrCodeId)
|
||||
.orElseThrow(() -> new ResourceNotFoundExceptions("URL not found for QR Code id: " + qrCodeId));
|
||||
// return urlRepository.findByQrCodeId(qrCodeId)
|
||||
// .orElseThrow(() -> new ResourceNotFoundExceptions("URL not found for QR Code id: " + qrCodeId));
|
||||
return urlRepository.findByQrCodeId(qrCodeId).orElse(null);
|
||||
}
|
||||
|
||||
public void insertDB(URLEntity urlEntity) {
|
||||
|
||||
Reference in New Issue
Block a user