mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Unhandled promise rejections from these fire-and-forget calls were surfacing in Sentry. Add .catch(debugConsole.error) to suppress them. GitOrigin-RevId: a14cd0a3956a2b551210723ad56e7ec5e354a7a7
8 lines
286 B
TypeScript
8 lines
286 B
TypeScript
import { postJSON } from '../../../infrastructure/fetch-json'
|
|
import { debugConsole } from '@/utils/debugging'
|
|
|
|
export const refreshProjectMetadata = (projectId: string, entityId: string) =>
|
|
postJSON(`/project/${projectId}/doc/${entityId}/metadata`).catch(
|
|
debugConsole.error
|
|
)
|