mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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);
|
DBHelper::setComicAsReading(libraryId, info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error = false;
|
||||||
|
updatedLibraryId = libraryId;
|
||||||
|
updatedComicId = comicId;
|
||||||
} else {
|
} else {
|
||||||
|
error = true;
|
||||||
response.setStatus(412, "No comic info received");
|
response.setStatus(412, "No comic info received");
|
||||||
response.write("", true);
|
response.write("", true);
|
||||||
return;
|
return;
|
||||||
|
@ -15,6 +15,10 @@ public:
|
|||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response) override;
|
void service(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response) override;
|
||||||
|
|
||||||
|
bool error;
|
||||||
|
qulonglong updatedLibraryId;
|
||||||
|
qulonglong updatedComicId;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // UPDATECOMICCONTROLLER_H
|
#endif // UPDATECOMICCONTROLLER_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user