diff options
author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-27 12:55:31 -0400 |
---|---|---|
committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-27 12:55:31 -0400 |
commit | f31c0d97f9f59371d90d1396469aa9569933fb0d (patch) | |
tree | 5a64328ef6361bda1237e5588db395d698f1f210 /src/server/index.ts | |
parent | 21bc14319013e4757ca24f56a685b7d75eaa259a (diff) |
Youtube Results Showing as List Implemented
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 9faeee381..9e4ad9d86 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -367,13 +367,13 @@ function GetRefFields([ids, callback]: [string[], (result?: Transferable[]) => v Database.Instance.getDocuments(ids, callback, "newDocuments"); } -function HandleYoutubeQuery([query, callback]: [YoutubeQueryInput, (result?: string) => void]) { +function HandleYoutubeQuery([query, callback]: [YoutubeQueryInput, (result?: any[]) => void]) { switch (query.type) { case YoutubeQueryType.Channels: YoutubeApi.authorizedGetChannel(youtubeApiKey); break; case YoutubeQueryType.SearchVideo: - YoutubeApi.authorizedGetVideos(youtubeApiKey, query.userInput); + YoutubeApi.authorizedGetVideos(youtubeApiKey, query.userInput, callback); } } |