package.json: remove apollo-server dependancy, using apollo-server-express instead

pull/14/head
leonnicolas 4 years ago
parent 14d9a817a2
commit 98437cc33a
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

12
package-lock.json generated

@ -864,18 +864,6 @@
"zen-observable-ts": "^0.8.21"
}
},
"apollo-server": {
"version": "2.17.0",
"resolved": "https://registry.npmjs.org/apollo-server/-/apollo-server-2.17.0.tgz",
"integrity": "sha512-vVMu+VqjmsB6yk5iNTb/AXM6EJGd2uwzrcTAbwqvGI7GqCYDRZlGBwrQCjOU/jT/EPWdNRWks/qhJYiQMeVXSg==",
"requires": {
"apollo-server-core": "^2.17.0",
"apollo-server-express": "^2.17.0",
"express": "^4.0.0",
"graphql-subscriptions": "^1.0.0",
"graphql-tools": "^4.0.0"
}
},
"apollo-server-caching": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-0.5.2.tgz",

@ -31,7 +31,6 @@
"@types/crc": "^3.4.0"
},
"dependencies": {
"apollo-server": "^2.17.0",
"apollo-server-express": "^2.17.0",
"crc": "^3.8.0",
"dotenv": "^8.2.0",

@ -410,6 +410,7 @@ export class CargoBikeAPI extends DataSource {
if (await LockUtils.isLocked(entityManager, EquipmentType, 'et', equipmentType.id, userId)) {
throw new GraphQLError('EquipmentType is locked by other user');
}
await ActionLogger.log(entityManager, EquipmentType, 'et', equipmentType, userId);
await entityManager.getRepository(EquipmentType)
.createQueryBuilder('et')
.update()

@ -1,5 +1,5 @@
import { DataSource } from 'apollo-datasource';
import { ApolloError, UserInputError } from 'apollo-server';
import { ApolloError, UserInputError } from 'apollo-server-express';
import { GraphQLError } from 'graphql';
import { Connection, EntityManager, getConnection, QueryFailedError } from 'typeorm';
import { CargoBike } from '../../model/CargoBike';

@ -5,7 +5,7 @@ import { Engagement } from '../../model/Engagement';
import { Participant } from '../../model/Participant';
import { EngagementType } from '../../model/EngagementType';
import { ActionLogger, genDateRange, LockUtils } from './utils';
import { UserInputError } from 'apollo-server';
import { UserInputError } from 'apollo-server-express';
import { GraphQLError } from 'graphql';
export class ParticipantAPI extends DataSource {

@ -2,7 +2,7 @@ import { DataSource } from 'apollo-datasource';
import { Connection, EntityManager, getConnection } from 'typeorm';
import { Provider } from '../../model/Provider';
import { Organisation } from '../../model/Organisation';
import { UserInputError } from 'apollo-server';
import { UserInputError } from 'apollo-server-express';
import { CargoBike } from '../../model/CargoBike';
import { LendingStation } from '../../model/LendingStation';
import { ActionLogger, LockUtils } from './utils';

@ -1,4 +1,4 @@
import { gql } from 'apollo-server';
import { gql } from 'apollo-server-express';
export default gql`

Loading…
Cancel
Save