fix copy bike

return -1 as id, so lending station will always be empty because no bike
has id -1.
pull/35/head
leonnicolas 4 years ago
parent e4ab021074
commit 1cfa73c52d
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

@ -41,7 +41,7 @@ The following environment variables can be used to configure the server:
```bash
RPC_HOST=host:port
NODE_ENV=develop/production
POSTGRES_CONNECTION_URL=postgres://username:password@host:port/database_name
DATABASE_URL=postgres://username:password@host:port/database_name
```
- __RPC_HOST__ is used for the connection with the [flotte-user-management server](https://github.com/fLotte-meets-HWR-DB/flotte-user-management).
- __NODE_ENV__ will not check authentication if set to development

@ -565,6 +565,7 @@ export class CargoBikeAPI extends DataSource {
delete cargoBike[value.key];
}
});
cargoBike.id = -1;
return cargoBike;
}

Loading…
Cancel
Save