From 299dba0da4462228009d670068fe74ce81530f6f Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sun, 15 Jan 2023 03:03:27 +0100 Subject: [PATCH] Empty changes list when uploading classes --- Sources/App/routes.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Sources/App/routes.swift b/Sources/App/routes.swift index b104d5b..3010ace 100755 --- a/Sources/App/routes.swift +++ b/Sources/App/routes.swift @@ -77,11 +77,6 @@ func routes(_ app: Application) { throw CapError.invalidBody } server.updateTrainedClasses(content: content) - } - - // Reset the changed images list - app.postCatching("changes") { request in - try authorize(request) server.emptyChangedImageListFile() } }