Skip to content
Permalink
Browse files

Merge pull request #94 from Turupawn/devel

Date default values is now 0
  • Loading branch information...
Turupawn committed Jun 10, 2019
2 parents 825afba + 6c1458f commit 6ad5ff2c93fc225d699ea072578546b20507639b
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/c/schemas/ModioMod.cpp
  2. +1 −1 src/c/schemas/ModioUser.cpp
@@ -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"];

@@ -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"];

0 comments on commit 6ad5ff2

Please sign in to comment.
You can’t perform that action at this time.