File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
controllers/admin-structures Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ export class AdminStructuresController {
65
65
const structures =
66
66
await this . adminStructuresService . getAdminStructuresListData ( ) ;
67
67
const users = await this . adminStructuresService . getUsersForAdmin ( ) ;
68
- console . log ( users ) ;
69
68
const workbook = await statsDeploiementExporter . generateExcelDocument ( {
70
69
structures,
71
70
users,
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ export class AdminStructuresService {
34
34
`user_structure."structureId" = structure.id`
35
35
)
36
36
. select ( [
37
- "id" ,
38
- "email" ,
39
- "nom" ,
37
+ "user_structure.id AS id" ,
38
+ "user_structure.email AS email" ,
39
+ "user_structure.nom AS nom" ,
40
40
"prenom" ,
41
41
"role" ,
42
- "verified" ,
42
+ "user_structure.verified as verified" ,
43
43
`"structureId"` ,
44
44
`structure.nom AS "structureName"` ,
45
45
] )
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ import {
5
5
} from "@domifa/common" ;
6
6
import { v4 as uuidv4 } from "uuid" ;
7
7
8
+ const getValue = ( value : any ) : any => {
9
+ return typeof value === "undefined" || value === null ? null : value ;
10
+ } ;
11
+
8
12
export const getDecisionForStats = (
9
13
decision : UsagerDecision
10
14
) : Partial < UsagerDecision > => {
@@ -57,7 +61,3 @@ export const getAyantsDroitForStats = (
57
61
dateNaissance : x . dateNaissance ,
58
62
} ) ) ;
59
63
} ;
60
-
61
- const getValue = ( value : any ) : any => {
62
- return typeof value === "undefined" || value === null ? null : value ;
63
- } ;
You can’t perform that action at this time.
0 commit comments