@@ -109,7 +109,7 @@ impl Db {
109109 let prop_val_sub_index = db. open_tree ( Tree :: PropValSub ) ?;
110110 let watched_queries = db. open_tree ( Tree :: WatchedQueries ) ?;
111111
112- let store = Db {
112+ let mut store = Db {
113113 path : path. into ( ) ,
114114 db,
115115 default_agent : Arc :: new ( Mutex :: new ( None ) ) ,
@@ -124,6 +124,8 @@ impl Db {
124124 on_commit : None ,
125125 } ;
126126
127+ store. add_class_extender ( crate :: collections:: get_collection_class_extender ( ) ) ?;
128+
127129 migrate_maybe ( & store) . map ( |e| format ! ( "Error during migration of database: {:?}" , e) ) ?;
128130 crate :: populate:: populate_base_models ( & store)
129131 . await
@@ -856,15 +858,15 @@ impl Storelike for Db {
856858 let url_span = tracing:: span!( tracing:: Level :: TRACE , "URL parse" ) . entered ( ) ;
857859 // This might add a trailing slash
858860 let url = url:: Url :: parse ( subject) ?;
859- let mut removed_query_params = {
861+ let mut subject_without_params = {
860862 let mut url_altered = url. clone ( ) ;
861863 url_altered. set_query ( None ) ;
862864 url_altered. to_string ( )
863865 } ;
864866
865867 // Remove trailing slash
866- if removed_query_params . ends_with ( '/' ) {
867- removed_query_params . pop ( ) ;
868+ if subject_without_params . ends_with ( '/' ) {
869+ subject_without_params . pop ( ) ;
868870 }
869871
870872 url_span. exit ( ) ;
@@ -880,7 +882,7 @@ impl Storelike for Db {
880882 }
881883
882884 async move {
883- let mut resource = self . get_resource ( & removed_query_params ) . await ?;
885+ let mut resource = self . get_resource ( & subject_without_params ) . await ?;
884886
885887 let _explanation = crate :: hierarchy:: check_read ( self , & resource, for_agent) . await ?;
886888
0 commit comments