Fix: Force pull images in deploy workflow
All checks were successful
Build and Push / build-all (push) Successful in 8m52s

This commit is contained in:
doomtube 2026-01-06 23:20:31 -05:00
parent 5430e434c3
commit 7f56f19e94
10 changed files with 164 additions and 30 deletions

View file

@ -2536,7 +2536,7 @@ void AdminController::uploadDefaultAvatars(const HttpRequestPtr &req,
}
// Create avatars directory if it doesn't exist
std::string avatarsDir = "/data/uploads/avatars";
std::string avatarsDir = "/app/uploads/avatars";
std::filesystem::create_directories(avatarsDir);
Json::Value uploaded(Json::arrayValue);
@ -2667,7 +2667,7 @@ void AdminController::deleteDefaultAvatar(const HttpRequestPtr &req,
<< id
>> [callback, filePath](const Result&) {
// Delete file from filesystem
std::string fullPath = "/data" + filePath;
std::string fullPath = "/app" + filePath;
std::filesystem::remove(fullPath);
Json::Value resp;