improve: sentry metrics
This commit is contained in:
parent
8d25914bd1
commit
9a29793e2c
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue