@ -137,6 +137,8 @@ export async function getApp (connOptions: ConnectionOptions) {
await cargoBikeAPI.populateCopyConfig();
} catch (err) {
console.error(err);
// exit so docker can restart the container and reattempt
process.exit(1);
}
const server = new ApolloServer({
@ -23,6 +23,10 @@ import { getApp, getConnectionOptions, userAPI } from './app';
app.listen(4000, async () => {
await userAPI.createDefinedPermissions().catch(
err => console.log(err));
err => {
console.log(err);
});
})();
@ -983,18 +983,21 @@ export default gql`
street: String!
number: String!
zip: String!
city: String
input AddressCreateInput {
input AddressUpdateInput {
street: String
number: String
zip: String
type ActionLog {