Skip to content

Commit

Permalink
Merge pull request #72 from Grupo13-PES-Mascotas/hotfix/v2.0.3
Browse files Browse the repository at this point in the history
Hotfix/v2.0.3
  • Loading branch information
santidrj authored May 27, 2020
2 parents 6b378dc + 22b25ed commit 23490d8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: chmod a+x .github/scripts/decrypt_key.sh && ./.github/scripts/decrypt_key.sh && chmod a+x .github/scripts/decrypt_develop_key.sh && ./.github/scripts/decrypt_develop_key.sh && java -jar -Dserver.port=$PORT build/libs/webservice-2.0.2.jar
web: chmod a+x .github/scripts/decrypt_key.sh && ./.github/scripts/decrypt_key.sh && chmod a+x .github/scripts/decrypt_develop_key.sh && ./.github/scripts/decrypt_develop_key.sh && java -jar -Dserver.port=$PORT build/libs/webservice-2.0.3.jar
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Software project from FIB (Facultat d'Informàtica de Barcelona)

## Documentation
Documentation for the current release:
- [Webservice Javadoc](https://javadoc.jitpack.io/com/github/Grupo13-PES-Mascotas/PES_My-Pet-Care-Webservice/v2.0.2/javadoc/)
- [Webservice Javadoc](https://javadoc.jitpack.io/com/github/Grupo13-PES-Mascotas/PES_My-Pet-Care-Webservice/v2.0.3/javadoc/)
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

group = 'com.github.Grupo13-PES-Mascotas'
version = '2.0.2'
version = '2.0.3'
sourceCompatibility = '1.8'

configurations {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ private void deleteUserFromMember(String groupId, String userUid, WriteBatch bat
private void deleteGroupIcon(String id) throws DatabaseAccessException, DocumentException {
String path = (String) documentAdapter
.getDocumentField(Path.ofDocument(Collections.groups, id), FieldPath.of("icon", "path"));
storageDao.deleteImageByName(path);
if (path != null) {
storageDao.deleteImageByName(path);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public void createUser(String uid, UserEntity userEntity) throws DatabaseAccessE
public void deleteFromDatabase(String uid) throws DatabaseAccessException, DocumentException {
DocumentSnapshot userDoc = getDocumentSnapshot(users, uid);
throwExceptionIfUserDoesNotExist(userDoc);
petDao.deleteAllPets(uid);
deleteUserStorage(uid);
String username = (String) userDoc.get(USERNAME_FIELD);
petDao.deleteAllPets(username);
deleteUserStorage(uid);
WriteBatch batch = collectionAdapter.batch();
deleteUserLikes(username, batch);
collectionAdapter.commitBatch(batch);
Expand Down

0 comments on commit 23490d8

Please sign in to comment.