Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mit-27 committed Mar 29, 2024
1 parent a3b38b5 commit 8686a3c
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/crm/company/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class SyncService implements OnModuleInit {
let companies_results: CrmCompany[] = [];
for (let i = 0; i < companies.length; i++) {
const company = companies[i];
const originId = company.remote_id[i];
const originId = company.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/crm/engagement/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class SyncService implements OnModuleInit {
let engagements_results: CrmEngagement[] = [];
for (let i = 0; i < engagements.length; i++) {
const engagement = engagements[i];
const originId = engagement.remote_id[i];
const originId = engagement.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/crm/note/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class SyncService implements OnModuleInit {
let notes_results: CrmNote[] = [];
for (let i = 0; i < notes.length; i++) {
const note = notes[i];
const originId = note.remote_id[i];
const originId = note.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/crm/stage/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class SyncService implements OnModuleInit {
let stages_results: CrmStage[] = [];
for (let i = 0; i < stages.length; i++) {
const stage = stages[i];
const originId = stage.remote_id[i];
const originId = stage.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/crm/task/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class SyncService implements OnModuleInit {
let tasks_results: CrmTask[] = [];
for (let i = 0; i < tasks.length; i++) {
const task = tasks[i];
const originId = task.remote_id[i];
const originId = task.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/crm/user/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class SyncService implements OnModuleInit {
let users_results: CrmUser[] = [];
for (let i = 0; i < users.length; i++) {
const user = users[i];
const originId = user.id[i];
const originId = user.id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ticketing/account/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class SyncService implements OnModuleInit {
let accounts_results: TicketingAccount[] = [];
for (let i = 0; i < accounts.length; i++) {
const account = accounts[i];
const originId = account.id[i];
const originId = account.id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ticketing/comment/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class SyncService implements OnModuleInit {
let comments_results: TicketingComment[] = [];
for (let i = 0; i < comments.length; i++) {
const comment = comments[i];
const originId = comment.remote_id[i];
const originId = comment.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ticketing/contact/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class SyncService implements OnModuleInit {
let contacts_results: TicketingContact[] = [];
for (let i = 0; i < contacts.length; i++) {
const contact = contacts[i];
const originId = contact.remote_id[i];
const originId = contact.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ticketing/tag/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class SyncService implements OnModuleInit {
let tags_results: TicketingTag[] = [];
for (let i = 0; i < tags.length; i++) {
const tag = tags[i];
const originId = tag.remote_id[i];
const originId = tag.remote_id;

if (!originId || originId == '') {
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ticketing/team/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class SyncService implements OnModuleInit {
let teams_results: TicketingTeam[] = [];
for (let i = 0; i < teams.length; i++) {
const team = teams[i];
const originId = team.id[i];
const originId = team.id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ticketing/ticket/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class SyncService implements OnModuleInit {
let tickets_results: TicketingTicket[] = [];
for (let i = 0; i < tickets.length; i++) {
const ticket = tickets[i];
const originId = ticket.remote_id[i];
const originId = ticket.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ticketing/user/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class SyncService implements OnModuleInit {
let users_results: TicketingUser[] = [];
for (let i = 0; i < users.length; i++) {
const user = users[i];
const originId = user.remote_id[i];
const originId = user.remote_id;

if (!originId || originId == '') {
throw new NotFoundError(`Origin id not there, found ${originId}`);
Expand Down

0 comments on commit 8686a3c

Please sign in to comment.