Skip to content

Commit fc6f0bd

Browse files
Merge pull request #47 from plankes-projects/master
null pointer
2 parents 57750f7 + 757d44c commit fc6f0bd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

clients/vue/src/untils/NotificationUtils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export class NotificationUtils {
3939
}
4040

4141
private static async sendTokenToServer(token: string) {
42-
console.log("send to server: " + token);
4342
const api = new UserApi({
4443
basePath: config.basePath,
4544
apiKey: StateUtils.getApiKey(),

server/app/src/main/java/com/epicnerf/hibernate/dao/NotificationDao.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ private void addUserMapping(String deviceIdentifier, User user) {
7272

7373
device.setUser(user);
7474

75-
//this shall be called before the save, such we only send notification to current devices
76-
notificationManager.onNewDeviceLink(user, device);
7775
deviceRepository.save(device);
76+
notificationManager.onNewDeviceLink(user, device);
7877
}
7978

8079
public void insertForAllUsersOfGroup(@NonNull String title, @NonNull String body, @NonNull GroupObject group) {

0 commit comments

Comments
 (0)