Skip to content

Commit

Permalink
fix(shorturl): fix absolute import cant resolved by node
Browse files Browse the repository at this point in the history
this is usually casued by vscode's auto import, can be resolved by tools like tsc-paths or
module-alias

fix #16
  • Loading branch information
colinaaa committed Sep 26, 2020
1 parent 622fb6b commit c66a061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/actions/sms/sendSMS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Request, RequestHandler } from 'express';
import { body, validationResult } from 'express-validator';
import moment from 'moment';
import fetch from 'node-fetch';
import { shortenURL } from 'src/utils/shortenURL';
import { shortenURL } from '../../utils/shortenURL';
import { formURL, smsAPI, token } from '../../config/consts';
import { CandidateRepo, PayloadRepo, RecruitmentRepo } from '../../database/model';
import { redisAsync } from '../../redis';
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/utils/shortenURL.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fetch from "node-fetch";
import { shortenURLAPI } from "src/config/consts";
import { shortenURLAPI } from "../config/consts";
import { URLSearchParams } from "url";

interface IAlAPIShortURLResp {
Expand Down

0 comments on commit c66a061

Please sign in to comment.