From c288effda9d500cf28ccbd61a0f9e0841af47531 Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Wed, 20 Mar 2024 10:52:34 +0100 Subject: [PATCH] chore: fix few types errors --- src/core/types/types.js | 2 +- src/requests/cozy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/types/types.js b/src/core/types/types.js index ff4c70f..f7dff47 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 2e22ceb..e71288c 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}`) -- GitLab