This commit is contained in:
EntireTwix 2021-06-18 12:41:31 -07:00
commit 0b9a8a1541
4 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,4 @@
/build
/config.json
/users.json
/*.md

View file

@ -63,10 +63,10 @@ Thank you to the contributors
| Name | Project Work | Connected Service Work |
| :------------------------------------------ | ---------------------------------------------------------- | ---------------------- |
| [Expand](https://github.com/Expand-sys) | `N/A` | Frontend |
| [React](https://github.com/Reactified) | Logo | CC {API, Shops, ATM} |
| [Expand](https://github.com/Expand-sys) | Slight docker changes | Frontend |
| [React](https://github.com/Reactified) | CC API, Logo | CC Shop, CC ATM. |
| [Luke](https://github.com/LukeeeeBennett) | JS API, Docker, Slight Doc edits | `N/A` |
| [Doggo](https://github.com/FearlessDoggo21) | Logs loading/adding Optimized, HTTP convention suggestions | `N/A` |
| [Luke](https://github.com/LukeeeeBennett) | Docker, Slight Doc edits | JS API |
| [Jolly](https://github.com/STBoyden) | Slight Doc edits | `N/A` |
## Features

View file

@ -55,7 +55,7 @@ int main(int argc, char **argv)
bank.admin_pass = argv[1];
//Auto Saving
const unsigned long saving_freq = std::stoul(argv[2]);
const unsigned long saving_freq = std::stoul(std::string(argv[2]));
if (saving_freq) //if saving frequency is 0 then auto saving is turned off
{
std::thread([saving_freq]() {
@ -73,7 +73,7 @@ int main(int argc, char **argv)
[](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) {
resp->addHeader("Access-Control-Allow-Origin", "*");
});
app().loadConfigFile(config_location).registerController(API).setThreadNum(std::stoul(argv[3])).run();
app().loadConfigFile(config_location).registerController(API).setThreadNum(std::stoul(std::string(argv[3]))).run();
return 0;
}

View file

@ -92,4 +92,4 @@ void BankF::GetLog(req_args, const std::string &name)
resp->setExpiredTime(0); //cached forever
callback(resp);
}
}
}