diff --git a/src/core/types/types.js b/src/core/types/types.js index ff4c70f3f3a28f1f384fd0d8d85ce0ee463ddb2a..f7dff478c17b589637ac35cedc9fbad67de91f10 100644 --- a/src/core/types/types.js +++ b/src/core/types/types.js @@ -89,7 +89,7 @@ * @typedef {object} AccountData * @property {string} consentId * @property {string} inseeCode - * @property {string} offPeakHours + * @property {string | undefined} offPeakHours */ /** diff --git a/src/requests/cozy.js b/src/requests/cozy.js index 2e22ceba07e45a2b0d553abd7caa95736f23d65b..e71288cad945c1a25a4f7877de530a630adbe29d 100644 --- a/src/requests/cozy.js +++ b/src/requests/cozy.js @@ -34,7 +34,7 @@ async function saveAccountData(accountId, accountData) { /** * Return account * @param {string} accountId - * @returns {Account} + * @returns {Promise<Account>} */ async function getAccount(accountId) { log('info', `getAccount: ${accountId}`)