mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-10 22:41:17 +00:00
apply sentry suggestion
This commit is contained in:
parent
7ddbfe6dd9
commit
def4baf028
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ function fetchOgData(url: string): Promise<OgData | null> {
|
|||
})
|
||||
.then((data) => {
|
||||
const result: OgData = { title: data?.title, image: data?.image }
|
||||
if (!result.title && !result.image) {
|
||||
throw new Error("Empty metadata")
|
||||
}
|
||||
ogCache.set(url, result)
|
||||
ogInflight.delete(url)
|
||||
ogFailures.delete(url)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue