Provide information about the comic updated in UpdateComicControllerV2

This commit is contained in:
Luis Ángel San Martín 2022-10-15 11:39:55 +02:00
parent a4a2b3ce6c
commit bf36672ade
2 changed files with 9 additions and 0 deletions

View File

@ -44,7 +44,12 @@ void UpdateComicControllerV2::service(HttpRequest &request, HttpResponse &respon
DBHelper::setComicAsReading(libraryId, info);
}
}
error = false;
updatedLibraryId = libraryId;
updatedComicId = comicId;
} else {
error = true;
response.setStatus(412, "No comic info received");
response.write("", true);
return;

View File

@ -15,6 +15,10 @@ public:
/** Generates the response */
void service(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response) override;
bool error;
qulonglong updatedLibraryId;
qulonglong updatedComicId;
};
#endif // UPDATECOMICCONTROLLER_H