Use relative depth in refresh task

This commit is contained in:
Zaid Abdulla committed 2016-09-06 03:21:32 -07:00
1 parent b60682bf80
commit 5134f8419c
1 file changed
+2 -2
+2 -2
View File
@@ -247,7 +247,7 @@ runProvisions = (sessionData, provisions, startRevision, endRevision, callback)
when 'refresh'
path = common.parsePath(provision[1]).slice()
l = path.length
path.length = 10
path.length += 10
path.fill('*', l)
t = provision[2]
t += sessionData.timestamp if t <= 0
@@ -272,7 +272,7 @@ runProvisions = (sessionData, provisions, startRevision, endRevision, callback)
when 'refreshObject'
path = common.parsePath(provision[3]).slice()
l = path.length
path.length = 10
path.length += 10
path.fill('*', l)
for i in [l...path.length] by 1
p = common.addPathMeta(path.slice(0, i))