diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-11 16:52:46 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-11 16:52:46 +0100 |
commit | 41e702d8535d9f703ca7740ce0aa356e8f9797be (patch) | |
tree | 614415e36ed0597dbcbd4f558c7e068bf627c84f /modules | |
parent | 19f83eaa34e95a25373437728c8ab3316a3f273c (diff) |
Prefix the special db_json columns with an @.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/database/db_json.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_json.cpp b/modules/database/db_json.cpp index a43acc36b..7d556a0fc 100644 --- a/modules/database/db_json.cpp +++ b/modules/database/db_json.cpp @@ -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); |