Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
idioti 001
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtho committed Dec 27, 2023
1 parent 0772b41 commit e12a35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/call-fint.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getFintToken = require('./fint-token')
*/
const fintGraph = async (payload, county) => {
if (!payload) throw new Error('Missing required parameter "payload"')
if (!county || ['VFK', 'TFK'].includes(county)) throw new Error('Parameter "county" must be either "VFK" or "TFK"')
if (!county || !['VFK', 'TFK'].includes(county)) throw new Error('Parameter "county" must be either "VFK" or "TFK"')
const vfkConfig = {
clientId: FINT_VFK.CLIENT_ID,
clientSecret: FINT_VFK.CLIENT_SECRET,
Expand All @@ -33,4 +33,4 @@ const fintGraph = async (payload, county) => {
return data
}

module.exports = { fintGraph, fintRest }
module.exports = { fintGraph }

0 comments on commit e12a35f

Please # to comment.