Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
LLLE_Project
grdf-konnector
Commits
da771fe2
Commit
da771fe2
authored
Nov 27, 2020
by
Yoan VALLET
Browse files
add logs for debug
parent
75a79af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/index.js
View file @
da771fe2
...
...
@@ -135,7 +135,7 @@ async function getData(token, idPCE) {
*/
async
function
getActualDailyLoadData
()
{
log
(
'
debug
'
,
'
Retrieve previous daily data
'
)
const
result
=
await
cozyClient
.
data
.
find
All
(
'
com.grandlyon.grdf.day
'
)
const
result
=
await
cozyClient
.
data
.
query
All
(
'
com.grandlyon.grdf.day
'
)
if
(
result
&&
result
.
length
>
0
)
{
log
(
"
debug
"
,
"
RESULT FOUND
"
)
log
(
"
debug
"
,
result
)
...
...
Write
Preview
Supports
Markdown
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