some more logs

This commit is contained in:
Amruth Pillai
2022-11-24 22:01:00 +01:00
parent ebe13fa82e
commit 7238a3b50e
3 changed files with 6 additions and 12 deletions

View File

@ -64,20 +64,18 @@ export const fetchResumeByIdentifier = async ({
if (!isBrowser) { if (!isBrowser) {
const secretKey = options.secretKey; const secretKey = options.secretKey;
console.log('ResumeService~fetchResumeByIdentifier', 'isNotBrowser', username, slug, secretKey); const resume = await axios
.get<Resume>(`/resume/${username}/${slug}`, { params: { secretKey } })
.then((res) => res.data);
const resume = axios.get<Resume>(`/resume/${username}/${slug}`, { params: { secretKey } }).then((res) => res.data); console.log('ResumeService~fetchResumeByIdentifier', 'isNotBrowser', JSON.stringify(resume));
console.log('ResumeService~fetchResumeByIdentifier', 'isNotBrowser', resume);
return resume; return resume;
} }
console.log('ResumeService~fetchResumeByIdentifier', 'isBrowser', username, slug); const resume = await axios.get<Resume>(`/resume/${username}/${slug}`).then((res) => res.data);
const resume = axios.get<Resume>(`/resume/${username}/${slug}`).then((res) => res.data); console.log('ResumeService~fetchResumeByIdentifier', 'isBrowser', JSON.stringify(resume));
console.log('ResumeService~fetchResumeByIdentifier', 'isBrowser', resume);
return resume; return resume;
}; };

View File

@ -56,8 +56,6 @@ export class ResumeController {
@User('id') userId?: number, @User('id') userId?: number,
@Query('secretKey') secretKey?: string @Query('secretKey') secretKey?: string
) { ) {
console.log('ResumeController~findOneByIdentifier', username, slug, userId, secretKey);
return this.resumeService.findOneByIdentifier(username, slug, userId, secretKey); return this.resumeService.findOneByIdentifier(username, slug, userId, secretKey);
} }

View File

@ -162,8 +162,6 @@ export class ResumeService {
throw new HttpException('The resume you are looking does not exist, or maybe never did?', HttpStatus.NOT_FOUND); throw new HttpException('The resume you are looking does not exist, or maybe never did?', HttpStatus.NOT_FOUND);
} }
console.log('ResumeService~findOneByIdentifier', resume);
return resume; return resume;
} }