Skip to content

Commit

Permalink
Merge branch 'hotfix/remove-broken-archive-for-now'
Browse files Browse the repository at this point in the history
  • Loading branch information
dotFionn committed Mar 26, 2023
2 parents 1326a1e + 24b77ea commit 32578b6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions backend/src/services/pilot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ export async function deletePilot(callsign: string): Promise<void> {

const logs = await pilotLogModel.find({pilot: callsign}).exec();

const archiveDocument = new archiveModel({
pilot: pilot,
logs: logs
})
// TODO: this piece of code made deleting not work. must be fixed at some point!
// const archiveDocument = new archiveModel({
// pilot: pilot,
// logs: logs
// })

await archiveDocument.save();
// await archiveDocument.save();


await pilotModel.findOneAndDelete({ callsign }).exec();
Expand Down

0 comments on commit 32578b6

Please sign in to comment.