diff --git a/server/runtime_javascript_nakama.go b/server/runtime_javascript_nakama.go index 29351c2256..3692560319 100644 --- a/server/runtime_javascript_nakama.go +++ b/server/runtime_javascript_nakama.go @@ -8294,12 +8294,12 @@ func (n *runtimeJavascriptNakamaModule) satoriPropertiesUpdate(r *goja.Runtime) properties.Custom = customPropsMap } - if recompute, ok := props["recomputeAudiences"]; ok { + if recompute, ok := props["recompute"]; ok { recomputeBool, ok := recompute.(bool) if !ok { - panic(r.NewTypeError("expects recomputeAudiences to be a boolean")) + panic(r.NewTypeError("expects recompute to be a boolean")) } - properties.RecomputeAudiences = &recomputeBool + properties.Recompute = &recomputeBool } if err := n.satori.PropertiesUpdate(n.ctx, id, properties); err != nil { diff --git a/server/runtime_lua_nakama.go b/server/runtime_lua_nakama.go index 316d5351a4..8b16e8f926 100644 --- a/server/runtime_lua_nakama.go +++ b/server/runtime_lua_nakama.go @@ -9986,14 +9986,14 @@ func (n *RuntimeLuaNakamaModule) satoriPropertiesUpdate(l *lua.LState) int { return } properties.Custom = customMap - case "recomputeAudiences": + case "recompute": if v.Type() != lua.LTBool { conversionError = true - l.ArgError(3, "expects recomputeAudiences value to be a bool") + l.ArgError(3, "expects recompute value to be a bool") return } - recomputeAudiences := lua.LVAsBool(v) - properties.RecomputeAudiences = &recomputeAudiences + recompute := lua.LVAsBool(v) + properties.Recompute = &recompute } })