Skip to content

Commit 7ae43fb

Browse files
Fix callback for addChannelToEnum (#1602)
Else the await does not work
1 parent d558ca3 commit 7ae43fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/adapter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3893,6 +3893,8 @@ function Adapter(options) {
38933893
obj.ts = Date.now();
38943894

38953895
adapterObjects.setObject(obj._id, obj, options, callback);
3896+
} else {
3897+
return tools.maybeCallback(callback);
38963898
}
38973899
}
38983900
});

0 commit comments

Comments
 (0)