addtl consoling
parent
1f8ad214db
commit
fbdd22909a
|
@ -15,7 +15,7 @@ export class CommentFetcher {
|
||||||
* @throws {Error} Throws an error if there is a failure in fetching comments from the API.
|
* @throws {Error} Throws an error if there is a failure in fetching comments from the API.
|
||||||
*/
|
*/
|
||||||
static async fetchComments(page: number): Promise<Comment[]> {
|
static async fetchComments(page: number): Promise<Comment[]> {
|
||||||
console.time(`Fetching page: ${page}`);
|
console.time(`${new Date()} Fetching page: ${page}`);
|
||||||
try {
|
try {
|
||||||
const axiosInstance = SessionManager.getInstance().axiosInstance;
|
const axiosInstance = SessionManager.getInstance().axiosInstance;
|
||||||
const response = await axiosInstance.get(`/comments?page=${page}`);
|
const response = await axiosInstance.get(`/comments?page=${page}`);
|
||||||
|
|
Loading…
Reference in New Issue