@nxtedition/deepstream.io-client-js 24.2.3 → 24.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/record/record.js +4 -4
package/package.json
CHANGED
package/src/record/record.js
CHANGED
|
@@ -205,17 +205,17 @@ class Record {
|
|
|
205
205
|
|
|
206
206
|
return new Promise((resolve, reject) => {
|
|
207
207
|
if (this._state >= state) {
|
|
208
|
-
resolve(
|
|
208
|
+
resolve(this)
|
|
209
209
|
return
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
let timeoutHandle
|
|
213
213
|
|
|
214
|
-
const onDone = (err
|
|
214
|
+
const onDone = (err) => {
|
|
215
215
|
if (err) {
|
|
216
216
|
reject(err)
|
|
217
217
|
} else {
|
|
218
|
-
resolve(
|
|
218
|
+
resolve(this)
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
this.unref()
|
|
@@ -231,7 +231,7 @@ class Record {
|
|
|
231
231
|
|
|
232
232
|
const onUpdate = () => {
|
|
233
233
|
if (this._state >= state) {
|
|
234
|
-
onDone(null
|
|
234
|
+
onDone(null)
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
|