Skip to content

Commit

Permalink
feat: 로그 암호화 시 git에 백틱 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 authored and LuizyHub committed Dec 7, 2023
1 parent 42ea9f2 commit 5a98e59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/backend/src/quizzes/quizzes.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,12 @@ export class QuizzesController {
await this.sessionService.getLogObject(sessionId, id)
).logs
.filter((log) => log.mode === 'command')
.map((log) => log.message);
.map((log) => {
if (log.message.startsWith('git')) {
return log.message.replace('git', '`git`');
}
return log.message;
});
const encodedCommands = encryptObject({
id,
commands,
Expand Down

0 comments on commit 5a98e59

Please sign in to comment.