Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c3f24090
Commit
c3f24090
authored
Aug 28, 2019
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix logsManager
parent
6acf1021
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
logsManager.js
remix-lib/src/execution/logsManager.js
+5
-5
No files found.
remix-lib/src/execution/logsManager.js
View file @
c3f24090
...
@@ -75,11 +75,11 @@ class LogsManager {
...
@@ -75,11 +75,11 @@ class LogsManager {
return
matchedSubscriptions
return
matchedSubscriptions
}
}
getLogsForSubscription
(
subscriptionId
)
{
getLogsForSubscription
(
subscriptionId
)
{
const
subscriptionParams
=
this
.
subscriptions
[
subscriptionId
]
const
subscriptionParams
=
this
.
subscriptions
[
subscriptionId
]
const
[
_queryType
,
queryFilter
]
=
subscriptionParams
const
[
_queryType
,
queryFilter
]
=
subscriptionParams
// eslint-disable-line
return
this
.
getLogsFor
(
queryFilter
)
;
return
this
.
getLogsFor
(
queryFilter
)
}
}
transmit
(
result
)
{
transmit
(
result
)
{
...
@@ -122,7 +122,7 @@ class LogsManager {
...
@@ -122,7 +122,7 @@ class LogsManager {
delete
this
.
filters
[
filterId
]
delete
this
.
filters
[
filterId
]
}
}
getLogsForFilter
(
filterId
,
logsOnly
)
{
getLogsForFilter
(
filterId
,
logsOnly
)
{
const
{
filterType
,
params
}
=
this
.
filter
[
filterId
]
const
{
filterType
,
params
}
=
this
.
filter
[
filterId
]
const
tracking
=
this
.
filterTracking
[
filterId
]
const
tracking
=
this
.
filterTracking
[
filterId
]
...
@@ -130,7 +130,7 @@ class LogsManager {
...
@@ -130,7 +130,7 @@ class LogsManager {
return
this
.
getLogsFor
(
params
||
{
topics
:
[]})
return
this
.
getLogsFor
(
params
||
{
topics
:
[]})
}
}
if
(
filterType
===
'block'
)
{
if
(
filterType
===
'block'
)
{
let
blocks
=
oldLogs
.
filter
(
x
=>
x
.
type
===
'block'
).
filter
(
x
=>
tracking
.
block
===
undefined
||
x
.
blockNumber
>=
tracking
.
block
)
let
blocks
=
this
.
oldLogs
.
filter
(
x
=>
x
.
type
===
'block'
).
filter
(
x
=>
tracking
.
block
===
undefined
||
x
.
blockNumber
>=
tracking
.
block
)
tracking
.
block
=
blocks
[
blocks
.
length
-
1
]
tracking
.
block
=
blocks
[
blocks
.
length
-
1
]
return
blocks
.
map
(
block
=>
(
'0x'
+
block
.
hash
().
toString
(
'hex'
)))
return
blocks
.
map
(
block
=>
(
'0x'
+
block
.
hash
().
toString
(
'hex'
)))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment