Skip to content

Commit

Permalink
upload trial youtube videos. closes #80.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgarropy committed Mar 2, 2020
1 parent 8294d8f commit 9889755
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require("dotenv").config()

const dtxcChannelId = "UCpbIlFaiv-3188nAWtgL0Iw"
const bradgarropyChannelId = "UCgbFhcZKt36Upo7oxWlLEig"

module.exports = {
siteMetadata: {
Expand Down Expand Up @@ -67,7 +66,7 @@ module.exports = {
{
resolve: "gatsby-source-youtube-v2",
options: {
channelId: [dtxcChannelId, bradgarropyChannelId],
channelId: [dtxcChannelId],
apiKey: process.env.YOUTUBE_API_KEY,
maxVideos: 50,
},
Expand Down
5 changes: 1 addition & 4 deletions src/hooks/useEpisode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import {useStaticQuery, graphql} from "gatsby"
const useEpisode = () => {
const query = graphql`
{
allYoutubeVideo(
limit: 1
sort: {fields: publishedAt, order: DESC}
) {
allYoutubeVideo(limit: 1, sort: {fields: publishedAt, order: ASC}) {
nodes {
title
videoId
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useEpisodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {useStaticQuery, graphql} from "gatsby"
const useEpisodes = ({limit = 0} = {}) => {
const query = graphql`
{
allYoutubeVideo(sort: {fields: publishedAt, order: DESC}) {
allYoutubeVideo(sort: {fields: publishedAt, order: ASC}) {
nodes {
title
videoId
Expand Down

0 comments on commit 9889755

Please sign in to comment.