Commit 7a35302f authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Graceful handling of storage list errors in JavaScript runtime.

parent 07e0165d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- More consistent signature and handling between JavaScript runtime Base64 encode functions.
- Improve group list cursor handling for messages with close timestamps.

### Fixed
- Graceful handling of storage list errors in JavaScript runtime.

## [3.13.1] - 2022-08-18
### Fixed
- Push new tag for fix to Docker image releases.
+3 −0
Original line number Diff line number Diff line
@@ -4128,6 +4128,9 @@ func (n *runtimeJavascriptNakamaModule) storageList(r *goja.Runtime) func(goja.F
		}

		objectList, _, err := StorageListObjects(n.ctx, n.logger, n.db, uuid.Nil, uid, collection, limit, cursor)
		if err != nil {
			panic(r.NewGoError(fmt.Errorf("failed to list storage objects: %s", err.Error())))
		}

		objects := make([]interface{}, 0, len(objectList.Objects))
		for _, o := range objectList.Objects {