mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 03:32:54 -05:00
✨ (bank-sync) expose demo bank in the get-banks endpoint (#168)
Exposing the demo bank again in the get-banks endpoint. Frontend implementation of the `showDemo` will come next. The demo bank will only be available for DEV and PREVIEW builds.
This commit is contained in:
committed by
GitHub
parent
df70a791fd
commit
19dbf815e6
@@ -88,14 +88,22 @@ app.post(
|
||||
app.post(
|
||||
'/get-banks',
|
||||
handleError(async (req, res) => {
|
||||
let { country } = req.body;
|
||||
let { country, showDemo = false } = req.body;
|
||||
|
||||
await nordigenService.setToken();
|
||||
const data = await nordigenService.getInstitutions(country);
|
||||
|
||||
res.send({
|
||||
status: 'ok',
|
||||
data,
|
||||
data: showDemo
|
||||
? [
|
||||
{
|
||||
id: 'SANDBOXFINANCE_SFIN0000',
|
||||
name: 'DEMO bank (used for testing bank-sync)',
|
||||
},
|
||||
...data,
|
||||
]
|
||||
: data,
|
||||
});
|
||||
}),
|
||||
);
|
||||
|
||||
6
upcoming-release-notes/168.md
Normal file
6
upcoming-release-notes/168.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Maintenance
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Expose demo bank that can be used to test Nordigen bank-sync
|
||||
Reference in New Issue
Block a user