diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/search.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/search.ts b/server/controllers/api/search.ts index 58851d0b5..ea3166f5f 100644 --- a/server/controllers/api/search.ts +++ b/server/controllers/api/search.ts | |||
@@ -139,7 +139,7 @@ async function searchVideoURI (url: string, res: express.Response) { | |||
139 | refreshVideo: false | 139 | refreshVideo: false |
140 | } | 140 | } |
141 | 141 | ||
142 | const result = await getOrCreateVideoAndAccountAndChannel(url, syncParam) | 142 | const result = await getOrCreateVideoAndAccountAndChannel({ videoObject: url, syncParam }) |
143 | video = result ? result.video : undefined | 143 | video = result ? result.video : undefined |
144 | } catch (err) { | 144 | } catch (err) { |
145 | logger.info('Cannot search remote video %s.', url, { err }) | 145 | logger.info('Cannot search remote video %s.', url, { err }) |