1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-28 00:38:36 +02:00

added @request.context field

This commit is contained in:
Gani Georgiev
2024-02-17 15:01:09 +02:00
parent 6aaf98215d
commit a11abef84b
42 changed files with 79 additions and 43 deletions

View File

@@ -376,7 +376,7 @@ func baseBinds(vm *goja.Runtime) {
})
vm.Set("RequestInfo", func(call goja.ConstructorCall) *goja.Object {
instance := &models.RequestInfo{}
instance := &models.RequestInfo{Context: models.RequestInfoContextDefault}
return structConstructor(vm, call, instance)
})