Skip to content

Commit b5568d8

Browse files
authored
Set timeout of update in config.
1 parent 4932d6c commit b5568d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/assets/js/sofia.db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ S.db.fiches = {
318318
value.doc.last_update = value.doc.events[value.doc.events.length -1].timestamp;
319319
var m = moment(value.doc.last_update);
320320
value.doc.last_update_since = m.fromNow();
321-
value.doc.last_update_is_old = m.add(3, 'hours').isBefore();
321+
value.doc.last_update_is_old = m.add(S.config.fiche.update_timeout, 'minutes').isBefore();
322322
var d = moment(value.doc.patient.birthdate);
323323
value.doc.patient.age = moment().diff(d, 'years');
324324
value.doc.patient.age_formatted = d.fromNow(true);

0 commit comments

Comments
 (0)