Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Server
Compare revisions
63f9bb5c618dd437842f8a97de99be03625df134 to f65720593f6657036f07530aa0dcbccd98ec1547
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server
Select target project
No results found
f65720593f6657036f07530aa0dcbccd98ec1547
Select Git revision
Swap
Target
web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server
Select target project
web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server
1 result
63f9bb5c618dd437842f8a97de99be03625df134
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
feat(structure): remove useless server lockdown filter
· 41a5d802
Etienne LOUPIAS
authored
2 years ago
41a5d802
feat(structure): remove useless await
· f6572059
Etienne LOUPIAS
authored
2 years ago
f6572059
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/structures/services/structures.service.ts
+3
-15
3 additions, 15 deletions
src/structures/services/structures.service.ts
with
3 additions
and
15 deletions
src/structures/services/structures.service.ts
View file @
f6572059
...
...
@@ -104,13 +104,7 @@ export class StructuresService {
.
exec
();
}
await
structures
.
sort
((
a
,
b
)
=>
ids
.
indexOf
(
a
.
id
)
-
ids
.
indexOf
(
b
.
id
));
if
(
!
(
await
this
.
parametersService
.
getParameters
()).
lockdownInfoDisplay
)
{
structures
.
map
((
structure
:
StructureDocument
)
=>
{
structure
.
lockdownActivity
=
''
;
});
}
return
structures
;
return
structures
.
sort
((
a
,
b
)
=>
ids
.
indexOf
(
a
.
id
)
-
ids
.
indexOf
(
b
.
id
));
}
public
async
create
(
idUser
:
string
,
structure
:
StructureDto
):
Promise
<
Structure
>
{
...
...
@@ -214,7 +208,7 @@ export class StructuresService {
public
async
findAll
():
Promise
<
StructureDocument
[]
>
{
this
.
logger
.
debug
(
'
findAll
'
);
le
t
structures
=
await
this
.
structureModel
.
find
({
deletedAt
:
{
$exists
:
false
}
}).
exec
();
cons
t
structures
=
await
this
.
structureModel
.
find
({
deletedAt
:
{
$exists
:
false
}
}).
exec
();
// Update structures coord and address before sending them
await
Promise
.
all
(
structures
.
map
((
structure
:
StructureDocument
)
=>
{
...
...
@@ -228,13 +222,7 @@ export class StructuresService {
}
})
);
structures
=
await
this
.
structureModel
.
find
({
deletedAt
:
{
$exists
:
false
},
accountVerified
:
true
}).
exec
();
if
(
!
(
await
this
.
parametersService
.
getParameters
()).
lockdownInfoDisplay
)
{
await
structures
.
map
((
structure
:
StructureDocument
)
=>
{
structure
.
lockdownActivity
=
''
;
});
}
return
structures
;
return
this
.
structureModel
.
find
({
deletedAt
:
{
$exists
:
false
},
accountVerified
:
true
}).
exec
();
}
public
async
findAllUnclaimed
():
Promise
<
UnclaimedStructureDto
[]
>
{
...
...
This diff is collapsed.
Click to expand it.