mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Provide information about the comic updated in UpdateComicControllerV2
This commit is contained in:
parent
a4a2b3ce6c
commit
bf36672ade
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user