From 291bc605d0ea7c6b9200c861d44a7de2432d1b68 Mon Sep 17 00:00:00 2001 From: blaginin Date: Wed, 21 Aug 2024 22:02:54 +0100 Subject: [PATCH] Fix js import & update the fix path --- core/src/fnc/mod.rs | 2 +- core/src/fnc/script/modules/surrealdb/functions/session.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/fnc/mod.rs b/core/src/fnc/mod.rs index f5a22f2a3756..d77041bfa94f 100644 --- a/core/src/fnc/mod.rs +++ b/core/src/fnc/mod.rs @@ -879,7 +879,7 @@ mod tests { for problem in problems { eprintln!(" - {problem}"); } - panic!("ensure functions can be parsed in lib/src/sql/function.rs and are exported to JS in lib/src/fnc/script/modules/surrealdb"); + panic!("ensure functions can be parsed in lib/src/sql/function.rs and are exported to JS in ./core/src/fnc/script/modules/surrealdb"); } } } diff --git a/core/src/fnc/script/modules/surrealdb/functions/session.rs b/core/src/fnc/script/modules/surrealdb/functions/session.rs index dd4599546369..26aef06ce6bd 100644 --- a/core/src/fnc/script/modules/surrealdb/functions/session.rs +++ b/core/src/fnc/script/modules/surrealdb/functions/session.rs @@ -9,6 +9,7 @@ impl_module_def!( "session", "db" => run, "id" => run, + "sid" => run, "ip" => run, "ns" => run, "origin" => run,