Skip to content

Commit

Permalink
Merge branch 'release/1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
PofMagicfingers committed Nov 9, 2020
2 parents f207628 + 7155efb commit 6268432
Show file tree
Hide file tree
Showing 10 changed files with 189 additions and 24 deletions.
68 changes: 51 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "podcloud-feeds",
"version": "1.4.1",
"version": "1.5.0",
"description": "GraphQL API for podcloud",
"scripts": {
"test": "NODE_ENV=test mocha --opts test/mocha.opts",
Expand Down
17 changes: 16 additions & 1 deletion src/connectors/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,22 @@ const FeedSchema = new Mongoose.Schema({
itunes_category: String,
disabled: Boolean,
feed_redirect_url: String,
web_redirect_url: String
web_redirect_url: String,
itunes: String,
google_podcasts: String,
spotify: String,
deezer: String,
podcloud: String,
youtube: String,
soundcloud: String,
dailymotion: String,
twitch: String,
twitter: String,
facebook: String,
instagram: String,
wiki: String,
shop: String,
donate: String
})

const Feed = Mongoose.model("feeds", FeedSchema)
Expand Down
17 changes: 16 additions & 1 deletion src/schema/queries/resolvers/podcastForFeedWithIdentifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,22 @@ const PodcastFields = [
"ordering",
"updated_at",
"feed_cover",
"_slugs"
"_slugs",
"itunes",
"google_podcasts",
"spotify",
"deezer",
"podcloud",
"youtube",
"soundcloud",
"dailymotion",
"twitch",
"twitter",
"facebook",
"instagram",
"wiki",
"shop",
"donate"
]

const podcastForFeedWithIdentifier = function(obj, args, context, info) {
Expand Down
14 changes: 13 additions & 1 deletion src/schema/queries/resolvers/podcasts.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ const PodcastFields = [
"ordering",
"updated_at",
"feed_cover",
"_slugs"
"_slugs",
"twitter",
"facebook",
"instagram",
"youtube",
"itunes",
"wiki",
"spotify",
"google_podcasts",
"deezer",
"soundcloud",
"shop",
"donate"
]

const podcasts = function() {
Expand Down
11 changes: 11 additions & 0 deletions src/schema/types/platforms.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const Platforms = `
type Platforms {
apple: String
google: String
spotify: String
deezer: String
podcloud: String
}
`

export default () => [Platforms]
Loading

0 comments on commit 6268432

Please sign in to comment.