integrated audit log into pretty everything hopefully
All checks were successful
Pull Request CI / Update Deployment (pull_request) Successful in 3m28s

This commit is contained in:
2026-02-12 22:04:14 -05:00
parent 5106b72e24
commit c7d79ae586
9 changed files with 67 additions and 16 deletions

View File

@@ -5,6 +5,7 @@ import { BatchPromotion, BatchPromotionMember } from '@app/shared/schemas/promot
import express = require('express');
import { logger } from "../services/logging/logger";
import { audit } from "../services/logging/auditLog";
const r = express.Router();
const ur = express.Router();
@@ -21,6 +22,8 @@ ur.post('/', [requireRole(["17th Command", "17th Administrator", "17th HQ"]), re
if (!change) res.sendStatus(400);
await batchInsertMemberRank(change, author, approver);
audit.member('update_rank', { actorId: author, targetId: null }, { changes: change.length });
logger.info('app', 'Promotion batch submitted', { author: author })
res.sendStatus(201);
} catch (error) {