Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
date default values is now 0
  • Loading branch information
Turupawn committed Jun 10, 2019
1 parent 1a31dfa commit 6c1458f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/c/schemas/ModioMod.cpp
Expand Up @@ -24,15 +24,15 @@ extern "C"
if(modio::hasKey(mod_json, "maturity_option"))
mod->maturity_option = mod_json["maturity_option"];

mod->date_added = -1;
mod->date_added = 0;
if(modio::hasKey(mod_json, "date_added"))
mod->date_added = mod_json["date_added"];

mod->date_updated = -1;
mod->date_updated = 0;
if(modio::hasKey(mod_json, "date_updated"))
mod->date_updated = mod_json["date_updated"];

mod->date_live = -1;
mod->date_live = 0;
if(modio::hasKey(mod_json, "date_live"))
mod->date_live = mod_json["date_live"];

Expand Down
2 changes: 1 addition & 1 deletion src/c/schemas/ModioUser.cpp
Expand Up @@ -8,7 +8,7 @@ extern "C"
if(modio::hasKey(user_json, "id"))
user->id = user_json["id"];

user->date_online = -1;
user->date_online = 0;
if(modio::hasKey(user_json, "date_online"))
user->date_online = user_json["date_online"];

Expand Down

0 comments on commit 6c1458f

Please sign in to comment.