mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 10:18:16 +00:00
Continue developing activity logs backend
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { Log, ILog } from '../models';
|
||||
import * as Sentry from '@sentry/node';
|
||||
import {
|
||||
EVENT_PUSH_SECRETS,
|
||||
EVENT_PULL_SECRETS
|
||||
} from '../variables';
|
||||
|
||||
|
||||
const handleLogHelper = async ({
|
||||
log
|
||||
}: {
|
||||
log: ILog
|
||||
}) => {
|
||||
try {
|
||||
switch (log.event) {
|
||||
case EVENT_PULL_SECRETS:
|
||||
// TODO
|
||||
break;
|
||||
}
|
||||
|
||||
} catch (err){
|
||||
Sentry.setUser(null);
|
||||
Sentry.captureException(err);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user