notifications.go
changeset 99 6ec2a44a1bd1
parent 98 5d803adfc57e
child 102 187aa2a668a5
--- a/notifications.go	Thu Apr 13 00:17:57 2017 +0200
+++ b/notifications.go	Thu Apr 13 09:30:47 2017 +0200
@@ -51,6 +51,10 @@
 		return &notification, fmt.Errorf("notification API: %s", err.Error())
 	}
 
+	if notification.ID == 0 {
+		return nil, ErrEntityNotFound
+	}
+
 	return &notification, nil
 }