diff --git a/frontend/app/models/absence-credit.js b/frontend/app/models/absence-credit.js index bcf389326..9debf7843 100644 --- a/frontend/app/models/absence-credit.js +++ b/frontend/app/models/absence-credit.js @@ -51,5 +51,5 @@ export default class AbsenceCredit extends Model { * @property {User} user * @public */ - @belongsTo("user", { async: true, inverse: null }) user; + @belongsTo("user", { async: false, inverse: null }) user; } diff --git a/frontend/app/models/overtime-credit.js b/frontend/app/models/overtime-credit.js index 76fd92a4c..ba06c6308 100644 --- a/frontend/app/models/overtime-credit.js +++ b/frontend/app/models/overtime-credit.js @@ -4,5 +4,5 @@ export default class OvertimeCredit extends Model { @attr("django-date") date; @attr("django-duration") duration; @attr("string", { defaultValue: "" }) comment; - @belongsTo("user", { async: true, inverse: null }) user; + @belongsTo("user", { async: false, inverse: null }) user; }