Ignore:
Timestamp:
08/29/22 22:31:57 (22 months ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
dbd4834
Parents:
b68ae8d
Message:

Registration logic with confirmation token implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phonelux-backend/src/main/java/finki/it/phoneluxbackend/services/PhoneService.java

    rb68ae8d rdfd5d87  
    2121    }
    2222
    23     public List<PhoneOffer> getOffersForPhone(Long phoneId) {
    24         boolean exists = phoneRepository.existsById(phoneId);
    25         if(!exists)
    26             throw new IllegalStateException("Phone with id "+phoneId+" does not exist");
    27 
    28         return phoneRepository.findById(phoneId).get().getPhoneOffers();
    29     }
    3023}
Note: See TracChangeset for help on using the changeset viewer.