Skip to content

Commit

Permalink
chore(frontend/models): add async and inverse to relationship definit…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
c0rydoras committed Aug 23, 2024
1 parent fb3ef4b commit 0b7911c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/app/models/project-statistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export default class ProjectStatistics extends Model {
@attr("django-duration") estimatedTime;
@attr("django-duration") duration;
@attr("django-duration") totalRemainingEffort;
@belongsTo("customer") customer;
@belongsTo("customer", { async: true, inverse: null }) customer;
}
8 changes: 4 additions & 4 deletions frontend/app/models/report-intersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default class ReportIntersection extends Model {
@attr("boolean", { allowNull: true, defaultValue: null }) billed;
@attr("boolean", { allowNull: true, defaultValue: null }) verified;

@belongsTo("customer") customer;
@belongsTo("project") project;
@belongsTo("task") task;
@belongsTo("user") user;
@belongsTo("customer", { async: true, inverse: null }) customer;
@belongsTo("project", { async: true, inverse: null }) project;
@belongsTo("task", { async: true, inverse: null }) task;
@belongsTo("user", { async: true, inverse: null }) user;
}

0 comments on commit 0b7911c

Please sign in to comment.