mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-10 04:22:06 +00:00
Migrate to new schema for users
This commit is contained in:
@@ -26,7 +26,7 @@ exports.createPages = ({ graphql, actions }) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
allAuthorsJson(limit: 100) {
|
||||
allUsersJson(limit: 100) {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
@@ -42,7 +42,7 @@ exports.createPages = ({ graphql, actions }) => {
|
||||
|
||||
// Create blog posts pages.
|
||||
const posts = result.data.allMarkdownRemark.edges
|
||||
const authors = result.data.allAuthorsJson.edges
|
||||
const authors = result.data.allUsersJson.edges
|
||||
|
||||
posts.forEach((post, index, arr) => {
|
||||
const previous = index === arr.length - 1 ? null : arr[index + 1].node
|
||||
|
||||
Reference in New Issue
Block a user