improve: sentry metrics

This commit is contained in:
Enno Gelhaus 2026-03-21 23:30:20 +01:00
parent 8d25914bd1
commit 9a29793e2c
No known key found for this signature in database
GPG key ID: F05E2EF8DBF7D874

View file

@ -218,11 +218,6 @@ export class PostsController {
) {
return (async () => {
const res = await this._postsService.changeDate(org.id, id, date, action);
if (action === 'schedule') {
try {
Sentry.metrics.count('posts.scheduled', 1, { attributes: { scheduleType: action } } as any);
} catch (e) {}
}
return res;
})();