Continue developing activity logs backend

This commit is contained in:
Tuan Dang
2022-12-21 16:27:04 -05:00
parent 6e50adb9ff
commit 009f9c6842
6 changed files with 132 additions and 10 deletions
+25
View File
@@ -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);
}
}