Skip to content

Commit

Permalink
Merge pull request #92 from alkem-io/develop
Browse files Browse the repository at this point in the history
Client-lib; skip goup check
  • Loading branch information
techsmyth authored Feb 1, 2022
2 parents 9de235c + a678fa5 commit 16aa1dd
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 30 deletions.
37 changes: 17 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"validate-connection": "ts-node src/utils/validate-connection.ts"
},
"dependencies": {
"@alkemio/client-lib": "^0.10.4",
"@alkemio/client-lib": "^0.11.2",
"@nestjs/axios": "^0.0.1",
"@nestjs/common": "^8.0.5",
"@nestjs/config": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/common/constants/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const DEFAULT_ENDPOINTS = {
alkemioServer: 'http://localhost:3000/admin/graphql',
alkemioServer: 'http://localhost:3000/api/private/non-interactive/graphql',
kratosApiEndpoint: 'http://localhost:3000/identity/ory/kratos/public',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export class ApplicationCreatedNotificationBuilder {
if (
recipient.preferences.find(
preference =>
preference.definition.group === 'Notification' &&
preference.definition.type === preferenceType &&
preference.value === 'true'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export class CommunicationDiscussionCreatedNotificationBuilder {
!preferenceType ||
recipient.preferences.find(
preference =>
preference.definition.group === 'Notification' &&
preference.definition.type === preferenceType &&
preference.value === 'true'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export class CommunicationUpdateNotificationBuilder {
!preferenceType ||
recipient.preferences.find(
preference =>
preference.definition.group === 'Notification' &&
preference.definition.type === preferenceType &&
preference.value === 'true'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export class UserRegisteredNotificationBuilder {
!preferenceType ||
recipient.preferences.find(
preference =>
preference.definition.group === 'Notification' &&
preference.definition.type === preferenceType &&
preference.value === 'true'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function alkemioClientFactory(
)?.public_endpoint;

const alkemioClientConfig = {
graphqlEndpoint: server,
apiEndpointPrivateGraphql: server,
authInfo: {
credentials: {
email: configService.get(ConfigurationTypes.ALKEMIO)?.service_account
Expand Down
6 changes: 3 additions & 3 deletions src/utils/validate-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import * as dotenv from 'dotenv';

const main = async () => {
dotenv.config();

const server =
process.env.ALKEMIO_SERVER_ENDPOINT || DEFAULT_ENDPOINTS.alkemioServer;
const alkemioClient = new AlkemioClient({
graphqlEndpoint:
process.env.ALKEMIO_SERVER_ENDPOINT ?? DEFAULT_ENDPOINTS.alkemioServer,
apiEndpointPrivateGraphql: server,
authInfo: {
credentials: {
email:
Expand Down

0 comments on commit 16aa1dd

Please sign in to comment.