Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix(UrlsApi): incorrect method logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Oct 16, 2023
1 parent f844260 commit 4fe4b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/server/src/routes/api/v1/urls/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class ApiRoute extends Route<Server> {

res.status(200).json(url);
} catch (err) {
this.server.logger.fatal("[URL:CREATE]: Fatal error while fetching a shorturl", err);
this.server.logger.fatal("[URL:GET]: Fatal error while fetching a shorturl", err);
res.status(500).send({
errors: [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/routes/api/v1/urls/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class ApiRoute extends Route<Server> {
await this.server.prisma.url.delete({ where: { id_domain: { domain: domain.domain, id: body.name } } });
res.sendStatus(204);
} catch (err) {
this.server.logger.fatal("[URL:CREATE]: Fatal error while deleting a shorturl", err);
this.server.logger.fatal("[URL:DELETE]: Fatal error while deleting a shorturl", err);
res.status(500).send({
errors: [
{
Expand Down

0 comments on commit 4fe4b6b

Please sign in to comment.