Skip to content

Commit

Permalink
chore: remove extraneous logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamim committed Jan 17, 2024
1 parent 5bdcc68 commit dd406c3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ export class Tick {

const options = this.createIreqOptions('GET', url)
const reqObj = this.request;
console.log("GUS: ", options)


return new Promise((resolve) => {
reqObj(options, async (error: any, response: any, body: any) => {
Expand Down Expand Up @@ -161,7 +159,7 @@ export class Tick {
url = `${this.apiUrl}/${allTasksEndPoint}`;
}
const options = this.createIreqOptions('GET', url)
console.log("getting from: ", options.url)

this.request(options, (error: any, response: any, body: any) => {

if (error) {
Expand All @@ -170,7 +168,6 @@ export class Tick {
}
if (body) {
body = JSON.parse(body);
console.log("inbox: ", error, body)
this.inboxProperties.id = body.inboxId;
body.syncTaskBean.update.forEach((task: any) => {
if (task.projectId == this.inboxProperties.id && task.sortOrder < this.inboxProperties.sortOrder) {
Expand Down Expand Up @@ -460,7 +457,6 @@ export class Tick {
}

updateTask(jsonOptions: any): Promise<any> {
console.log(jsonOptions.title, jsonOptions.id, jsonOptions.projectId);
const thisTask: ITask = {
id: jsonOptions.id ? jsonOptions.id : ObjectID(),
projectId: jsonOptions.projectId ? jsonOptions.projectId : this.inboxProperties.id,
Expand Down Expand Up @@ -503,14 +499,12 @@ export class Tick {
const options = { method: baseOptions.method, url: baseOptions.url, headers:baseOptions.headers,
json: taskBody
};
console.log("options: ", options)
return new Promise((resolve) => {
this.request(options, (error: any, response: any, body: any) => {
if (error) {
console.error('Error on updateTask', error);
resolve([]);
} else {
console.log("update should have worked.")
this.inboxProperties.sortOrder = body.sortOrder - 1;
resolve(body);
}
Expand Down

0 comments on commit dd406c3

Please sign in to comment.