Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter-squid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
duniter-squid
Merge requests
!17
fix: remove smiths certs from database when needed
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: remove smiths certs from database when needed
fix-smiths-certs-removing
into
main
Overview
2
Commits
1
Pipelines
0
Changes
1
1 unresolved thread
Hide all comments
Merged
poka
requested to merge
fix-smiths-certs-removing
into
main
1 year ago
Overview
2
Commits
1
Pipelines
0
Changes
1
1 unresolved thread
Hide all comments
Expand
1
0
Merge request reports
Compare
main
version 3
970ecc1e
1 year ago
version 2
6ad7250c
1 year ago
version 1
a4643fd9
1 year ago
main (base)
and
latest version
latest version
6ad7250c
1 commit,
1 year ago
version 3
970ecc1e
2 commits,
1 year ago
version 2
6ad7250c
1 commit,
1 year ago
version 1
a4643fd9
1 commit,
1 year ago
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/data_handler.ts
+
4
−
2
Options
@@ -331,8 +331,10 @@ export class DataHandler {
// Process remove smith cert
for
(
const
smithCertRemoved
of
newData
.
smithCertRemoved
)
{
const
{
issuerId
,
receiverId
}
=
smithCertRemoved
;
this
.
data
.
smithCert
.
delete
([
issuerId
,
receiverId
]);
const
smithCert
=
await
ctx
.
store
.
findOneOrFail
(
SmithCert
,
{
where
:
{
issuer
:
{
index
:
issuerId
},
receiver
:
{
index
:
receiverId
}
},
});
await
ctx
.
store
.
remove
(
smithCert
);
}
// Process Smith invitation sent
Loading