Added newline at the end of PersistenceManager

This commit is contained in:
delvh 2020-02-18 16:36:31 +01:00
parent e673c4e242
commit ae9d2238b6

View File

@ -184,15 +184,15 @@ public class PersistenceManager {
* @since Envoy Server Standalone v0.1-alpha
*/
public void addContact(long userId1, long userId2) {
// Get users by ID
User u1 = getUserById(userId1);
User u2 = getUserById(userId2);
// Add users to each others contact lists
u1.getContacts().add(u2);
u2.getContacts().add(u1);
// Synchronize changes with the database
transaction.begin();
entityManager.merge(u1);
@ -226,4 +226,4 @@ public class PersistenceManager {
entityManager.remove(obj);
transaction.commit();
}
}
}