@logux/server 0.12.0 → 0.12.1
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/add-sync-map/index.js +2 -2
- package/package.json +1 -1
package/add-sync-map/index.js
CHANGED
|
@@ -188,14 +188,14 @@ export function addSyncMapFilter(server, plural, operations) {
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
async load(ctx, action, meta) {
|
|
191
|
+
let since = action.since ? action.since.time : 0
|
|
191
192
|
let data = await operations.initial(
|
|
192
193
|
ctx,
|
|
193
194
|
action.filter,
|
|
194
|
-
|
|
195
|
+
since,
|
|
195
196
|
action,
|
|
196
197
|
meta
|
|
197
198
|
)
|
|
198
|
-
let since = action.since ? action.since.time : 0
|
|
199
199
|
await Promise.all(
|
|
200
200
|
data.map(async i => {
|
|
201
201
|
await server.subscribe(ctx.nodeId, `${plural}/${i.id}`)
|