forked from Telodendria/Telodendria
Convert RegTokenInfo
to a j2s
Schema. #1
1 changed files with 5 additions and 1 deletions
|
@ -154,13 +154,17 @@ RegTokenFree(RegTokenInfo *tokeninfo)
|
|||
int
|
||||
RegTokenClose(RegTokenInfo * tokeninfo)
|
||||
{
|
||||
HashMap *json;
|
||||
|
||||
if (!tokeninfo)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Write object to database. */
|
||||
DbJsonSet(tokeninfo->ref, RegTokenInfoToJson(tokeninfo));
|
||||
json = RegTokenInfoToJson(tokeninfo);
|
||||
DbJsonSet(tokeninfo->ref, json); /* Copies json into internal structure. */
|
||||
JsonFree(json);
|
||||
|
||||
return DbUnlock(tokeninfo->db, tokeninfo->ref);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue