Skip to content

Commit

Permalink
chore(frontend/credits): mark belongsTo for user as async false
Browse files Browse the repository at this point in the history
this fixes `ember-data:deprecate-promise-proxies` for creating credits
  • Loading branch information
c0rydoras committed Aug 23, 2024
1 parent 0b7911c commit fd5e38d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/app/models/absence-credit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion frontend/app/models/overtime-credit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit fd5e38d

Please sign in to comment.