Skip to content

Commit

Permalink
REMOVED PERSONAL INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
sayeedajmal committed Feb 8, 2024
1 parent 47dc80f commit 936705d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ public ResponseEntity<String> updateDonor(@RequestBody Donor updatedDonor) {
// Update donor details
existingDonor.setFirstName(updatedDonor.getFirstName());
existingDonor.setLastName(updatedDonor.getLastName());
// ... (other fields)
existingDonor.setAddress(updatedDonor.getAddress());
existingDonor.setBloodType(updatedDonor.getBloodType());
existingDonor.setContactNumber(updatedDonor.getContactNumber());
existingDonor.setDOB(updatedDonor.getDOB());
existingDonor.setEmail(updatedDonor.getEmail());

donorService.updateDonor(existingDonor);
return new ResponseEntity<>("Updated Successfully", HttpStatus.OK);
Expand Down

This file was deleted.

19 changes: 8 additions & 11 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
bloodDonation.organisation.name=Blood Donation
bloodDonation.organisation.name=${ORG_NAME}
bloodDonation.organisation.website=https://sayeedthedev.web.app
bloodDonation.organisation.PhoneNumber=9964716450
bloodDonation.organisation.Location=Kalaburagi
bloodDonation.organisation.OrganisationEmail=classmateprogramming@gmail.com
bloodDonation.organisation.OrganisationEmailPassword=odxz jqqz gskr tjhp
bloodDonation.organisation.PhoneNumber=${NUMBER}
bloodDonation.organisation.Location=${LOCATION}
bloodDonation.organisation.OrganisationEmail=${EMAIL}
bloodDonation.organisation.OrganisationEmailPassword=${PASSWORD}

#logging.level.jakarta.mail=error

# DataSource Configuration
spring.datasource.url=jdbc:mysql://localhost:3306/BloodBank
spring.datasource.username=BloodBank
spring.datasource.password=BloodBank
#spring.datasource.url=jdbc:mysql://${PROD_DB_HOST}:${PROD_DB_PORT}/${PROD_DB_NAME}
#spring.datasource.username=${PROD_DB_USERNAME}
#spring.datasource.password=${PROD_DB_PASSWORD}
spring.datasource.url=jdbc:mysql://${PROD_DB_HOST}:${PROD_DB_PORT}/${PROD_DB_NAME}
spring.datasource.username=${PROD_DB_USERNAME}
spring.datasource.password=${PROD_DB_PASSWORD}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# Hibernate Configuration
Expand Down

0 comments on commit 936705d

Please sign in to comment.