mirror of
https://github.com/anope/anope.git
synced 2026-06-25 16:46:37 +02:00
Prefix the special db_json columns with an @.
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
continue;
|
||||
|
||||
Anope::string akey(yyjson_mut_get_str(key));
|
||||
if (akey.equals_ci("id"))
|
||||
if (akey.equals_ci("@id"))
|
||||
{
|
||||
this->id = yyjson_mut_get_uint(value);
|
||||
continue;
|
||||
@@ -354,7 +354,7 @@ public:
|
||||
|
||||
auto *elem = yyjson_mut_arr_add_obj(doc, type);
|
||||
if (item->id)
|
||||
yyjson_mut_obj_add_uint(doc, elem, "id", item->id);
|
||||
yyjson_mut_obj_add_uint(doc, elem, "@id", item->id);
|
||||
|
||||
Data sd;
|
||||
s_type->Serialize(item, sd);
|
||||
|
||||
Reference in New Issue
Block a user