add city to address

pull/35/head
leonnicolas 4 years ago
parent e748d66965
commit adab4ea272
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

@ -137,6 +137,8 @@ export async function getApp (connOptions: ConnectionOptions) {
await cargoBikeAPI.populateCopyConfig(); await cargoBikeAPI.populateCopyConfig();
} catch (err) { } catch (err) {
console.error(err); console.error(err);
// exit so docker can restart the container and reattempt
process.exit(1);
} }
const server = new ApolloServer({ const server = new ApolloServer({

@ -23,6 +23,10 @@ import { getApp, getConnectionOptions, userAPI } from './app';
app.listen(4000, async () => { app.listen(4000, async () => {
await userAPI.createDefinedPermissions().catch( await userAPI.createDefinedPermissions().catch(
err => console.log(err)); err => {
console.log(err);
// exit so docker can restart the container and reattempt
process.exit(1);
});
}); });
})(); })();

@ -983,18 +983,21 @@ export default gql`
street: String! street: String!
number: String! number: String!
zip: String! zip: String!
city: String
} }
input AddressCreateInput { input AddressCreateInput {
street: String! street: String!
number: String! number: String!
zip: String! zip: String!
city: String
} }
input AddressUpdateInput { input AddressUpdateInput {
street: String street: String
number: String number: String
zip: String zip: String
city: String
} }
type ActionLog { type ActionLog {

Loading…
Cancel
Save