Fix: Force pull images in deploy workflow
All checks were successful
Build and Push / build-all (push) Successful in 7m30s
All checks were successful
Build and Push / build-all (push) Successful in 7m30s
This commit is contained in:
parent
7f56f19e94
commit
0bb461498e
7 changed files with 104 additions and 23 deletions
|
|
@ -1081,7 +1081,7 @@ void AdminController::approveStickerSubmission(const HttpRequestPtr &req,
|
|||
// Insert into stickers table
|
||||
*dbClient << "INSERT INTO stickers (name, file_path) VALUES ($1, $2) RETURNING id"
|
||||
<< stickerName << filePath
|
||||
>> [callback, dbClient, id, reviewerId, stickerName](const Result& insertResult) {
|
||||
>> [callback, dbClient, id, reviewerId, stickerName, filePath](const Result& insertResult) {
|
||||
if (insertResult.empty()) {
|
||||
callback(jsonError("Failed to create sticker"));
|
||||
return;
|
||||
|
|
@ -1093,7 +1093,7 @@ void AdminController::approveStickerSubmission(const HttpRequestPtr &req,
|
|||
*dbClient << "UPDATE sticker_submissions SET status = 'approved', "
|
||||
"reviewed_by = $1, reviewed_at = CURRENT_TIMESTAMP WHERE id = $2"
|
||||
<< reviewerId << id
|
||||
>> [callback, newStickerId, stickerName](const Result&) {
|
||||
>> [callback, newStickerId, stickerName, filePath](const Result&) {
|
||||
// Notify chat-service to refresh sticker cache
|
||||
notifyChatServiceStickerUpdate();
|
||||
|
||||
|
|
@ -1102,6 +1102,7 @@ void AdminController::approveStickerSubmission(const HttpRequestPtr &req,
|
|||
resp["message"] = "Sticker approved and added";
|
||||
resp["sticker"]["id"] = static_cast<Json::Int64>(newStickerId);
|
||||
resp["sticker"]["name"] = stickerName;
|
||||
resp["sticker"]["filePath"] = filePath;
|
||||
callback(jsonResp(resp));
|
||||
}
|
||||
>> [callback](const DrogonDbException& e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue