Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
cb5903da
Commit
cb5903da
authored
1 year ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
Small changes
parent
ab854cea
No related branches found
Branches containing commit
No related tags found
1 merge request
!1422
Optimize response time of `/wot/requirements/:search`
Pipeline
#31788
failed
1 year ago
Stage: tests
Stage: package
Stage: quality
Stage: integration
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts
+3
-3
3 additions, 3 deletions
app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts
with
3 additions
and
3 deletions
app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts
+
3
−
3
View file @
cb5903da
...
@@ -219,14 +219,14 @@ export class SqliteIIndex extends SqliteTable<IindexEntry>
...
@@ -219,14 +219,14 @@ export class SqliteIIndex extends SqliteTable<IindexEntry>
@
MonitorExecutionTime
()
@
MonitorExecutionTime
()
async
getOldFromPubkey
(
pub
:
string
):
Promise
<
OldIindexEntry
|
null
>
{
async
getOldFromPubkey
(
pub
:
string
):
Promise
<
OldIindexEntry
|
null
>
{
const
id
ent
it
ies
=
await
this
.
find
(
const
ent
r
ies
=
await
this
.
find
(
"
SELECT * FROM iindex WHERE pub = ? order by writtenOn ASC
"
,
"
SELECT * FROM iindex WHERE pub = ? order by writtenOn ASC
"
,
[
pub
]
[
pub
]
);
);
if
(
!
id
ent
it
ies
.
length
)
{
if
(
!
ent
r
ies
.
length
)
{
return
null
;
return
null
;
}
}
return
OldTransformers
.
toOldIindexEntry
(
reduce
(
id
ent
it
ies
));
return
OldTransformers
.
toOldIindexEntry
(
reduce
(
ent
r
ies
));
}
}
@
MonitorExecutionTime
()
@
MonitorExecutionTime
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment