Skip to content
Snippets Groups Projects
Commit 7e0c0af1 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix build issues

parent 66378ba4
No related branches found
No related tags found
2 merge requests!132Add Support for Multiple Listeners,!109Project/haven beta
......@@ -472,7 +472,7 @@ func (r *RemoteKV) ListenOnRemoteMap(_ js.Value, args []js.Value) any {
// GetAllRemoteKeyListeners returns a JSON list of { key: [id, id, id, ...] },
// where key is the key for the listener and the list is an list of integer ids
// of each listener.
func (r *RemoteKV) GetAllRemoteKeyListeners() any {
func (r *RemoteKV) GetAllRemoteKeyListeners(_ js.Value, args []js.Value) any {
return r.api.GetAllRemoteKeyListeners()
}
......@@ -498,18 +498,18 @@ func (r *RemoteKV) DeleteRemoteKeyListener(_ js.Value, args []js.Value) any {
promiseFn := func(resolve, reject func(args ...any) js.Value) {
err := r.api.DeleteRemoteKeyListener(key, id)
if err != nil {
reject(execption.NewTrace(err))
reject(exception.NewTrace(err))
} else {
resolve()
}
}
return utils.CreatePromiseFn(promisFn)
return utils.CreatePromise(promiseFn)
}
// GetAllRemoteMapListeners returns a JSON list of { key: [id, id, id, ...] },
// where key is the key for the listener and the list is an list of integer ids
// of each listener.
func (r *RemoteKV) GetAllRemoteMapListeners() any {
func (r *RemoteKV) GetAllRemoteMapListeners(_ js.Value, args []js.Value) any {
return r.api.GetAllRemoteMapListeners()
}
......@@ -535,12 +535,12 @@ func (r *RemoteKV) DeleteRemoteMapListener(_ js.Value, args []js.Value) any {
promiseFn := func(resolve, reject func(args ...any) js.Value) {
err := r.api.DeleteRemoteMapListener(mapName, id)
if err != nil {
reject(execption.NewTrace(err))
reject(exception.NewTrace(err))
} else {
resolve()
}
}
return utils.CreatePromiseFn(promisFn)
return utils.CreatePromise(promiseFn)
}
////////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment