Skip to content

Commit

Permalink
📝 Updated docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Sep 4, 2024
1 parent 7683472 commit 193ac40
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
3 changes: 2 additions & 1 deletion docker-compose.source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ services:
build:
dockerfile: ./apps/magic-link/Dockerfile
context: ./
args:
VITE_BACKEND_DOMAIN: ${NEXT_PUBLIC_BACKEND_DOMAIN}
restart: always
ports:
- 81:80
Expand All @@ -262,7 +264,6 @@ services:
- backend
- frontend


networks:
frontend:
backend:
30 changes: 14 additions & 16 deletions packages/api/src/ticketing/comment/services/linear/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ import { TicketingObject } from '@ticketing/@lib/@types';
import { Utils } from '@ticketing/@lib/@utils';
import { ICommentService } from '@ticketing/comment/types';
import axios from 'axios';
import * as fs from 'fs';
import { ServiceRegistry } from '../registry.service';
import { LinearCommentInput, LinearCommentOutput } from './types';
import { LinearTicketOutput } from '@ticketing/ticket/services/linear/types';

@Injectable()
export class LinearService implements ICommentService {
Expand Down Expand Up @@ -45,19 +43,21 @@ export class LinearService implements ICommentService {
// Skipping Storing the attachment in unified object as Linear stores attachment as link in Markdown Format

const createCommentMutation = {
"query": `mutation { commentCreate( input: { body: \"${commentData.body}\" issueId: \"${remoteIdTicket}\" } ) { comment { body issue { id } user { id } } }}`
query: `mutation { commentCreate( input: { body: \"${commentData.body}\" issueId: \"${remoteIdTicket}\" } ) { comment { body issue { id } user { id } } }}`,
};

let resp = await axios.post(
const resp = await axios.post(
`${connection.account_url}`,
createCommentMutation, {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${this.cryptoService.decrypt(
connection.access_token,
)}`,
createCommentMutation,
{
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${this.cryptoService.decrypt(
connection.access_token,
)}`,
},
},
});
);
this.logger.log(`Created linear comment !`);

return {
Expand Down Expand Up @@ -91,12 +91,10 @@ export class LinearService implements ICommentService {
});

const commentQuery = {
"query": `query { issue(id: \"${ticket.remote_id}\") { comments { nodes { id body user { id } issue { id } } } }}`
query: `query { issue(id: \"${ticket.remote_id}\") { comments { nodes { id body user { id } issue { id } } } }}`,
};

let resp = await axios.post(
`${connection.account_url}`,
commentQuery, {
const resp = await axios.post(`${connection.account_url}`, commentQuery, {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${this.cryptoService.decrypt(
Expand All @@ -115,4 +113,4 @@ export class LinearService implements ICommentService {
throw error;
}
}
}
}

0 comments on commit 193ac40

Please sign in to comment.