Skip to content

Commit

Permalink
uppdae logger output
Browse files Browse the repository at this point in the history
  • Loading branch information
pontussjostedt committed Oct 28, 2024
1 parent ce12cf8 commit 02ece72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/access.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ export class AccessAPI {

const [, res] = await prisma.$transaction(transactionQueries);

logger.info(`Updated access for user ${username}`);
logger.debug(`Updated access for user ${username} to ${Logger.pretty(newAccess)}`);
logger.info(`Updated access for user ${username} by ${grantor}`);
logger.debug(`Updated access for user ${username} to ${Logger.pretty(newAccess)} by ${grantor}`);

return res.count === access.length;
}
Expand Down Expand Up @@ -324,8 +324,8 @@ export class AccessAPI {
// so access is not deleted if old one is bad
const [, res] = await prisma.$transaction(transactionQueries);

logger.info(`Updated access for post with id ${postId}`);
logger.debug(`Updated access for post with id ${postId} to ${Logger.pretty(newAccess)}`);
logger.info(`Updated access for post with id ${postId} by ${grantor}`);
logger.debug(`Updated access for post with id ${postId} to ${Logger.pretty(newAccess)} by ${grantor}`);
return res.count === access.length;
}

Expand Down

0 comments on commit 02ece72

Please sign in to comment.