fix sleep goal and step goal not being set in database (should fix user attribute table spamming)
This commit is contained in:
parent
0cc95bd297
commit
56c7b6b1cb
|
@ -266,6 +266,8 @@ public class DBHelper {
|
|||
attributes.setValidFromUTC(now.getTime());
|
||||
attributes.setHeightCM(prefsUser.getHeightCm());
|
||||
attributes.setWeightKG(prefsUser.getWeightKg());
|
||||
attributes.setSleepGoalHPD(prefsUser.getSleepDuration());
|
||||
attributes.setStepsGoalSPD(prefsUser.getStepsGoal());
|
||||
attributes.setUserId(user.getId());
|
||||
session.getUserAttributesDao().insert(attributes);
|
||||
|
||||
|
|
Loading…
Reference in New Issue