Skip to content

Commit

Permalink
Merge pull request #7924 from stopfstedt/rm-ilm
Browse files Browse the repository at this point in the history
delete ilm before saving session.
  • Loading branch information
dartajax authored Jul 3, 2024
2 parents 588885b + 7126f22 commit eb7f593
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ilios-common/addon/components/session-overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ export default class SessionOverview extends Component {
if (!value) {
const ilmSession = await this.args.session.ilmSession;
this.args.session.set('ilmSession', null);
ilmSession.deleteRecord();
await ilmSession.destroyRecord();
await this.args.session.save();
await ilmSession.save();
} else {
const hours = 1;
const dueDate = DateTime.now().plus({ week: 6 }).set({ hour: 17, minute: 0 }).toJSDate();
Expand Down

0 comments on commit eb7f593

Please sign in to comment.