From 24b77ea76fbeed801481afd049d2196d5542a177 Mon Sep 17 00:00:00 2001 From: Fionn Date: Sun, 26 Mar 2023 20:39:59 +0200 Subject: [PATCH] for now remove archive stuff --- backend/src/services/pilot.service.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/src/services/pilot.service.ts b/backend/src/services/pilot.service.ts index 7546dc3..392d064 100644 --- a/backend/src/services/pilot.service.ts +++ b/backend/src/services/pilot.service.ts @@ -53,12 +53,13 @@ export async function deletePilot(callsign: string): Promise { 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();