Skip to content

Commit

Permalink
Fix destructuring Create<ListName> from createItem
Browse files Browse the repository at this point in the history
  • Loading branch information
singhArmani committed Jul 28, 2020
1 parent 9e9ee36 commit 556c43f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo-projects/meetup/initialData.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function seedData(intitialData, keystone) {
* 2. Insert the data with the required relationships using connect
*/

const { createUsers: users } = await createItems({
const users = await createItems({
keystone,
listName: 'User',
items: initialData['User'].map(x => ({ data: x })),
Expand Down
2 changes: 1 addition & 1 deletion test-projects/basic/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function dropAllDatabases(adapters) {
* 2. Insert `Post` data, with the required relationships, via `connect` nested mutation.
*/
async function seedData(initialData) {
const { createUsers: users } = await createItems({
const users = await createItems({
keystone,
listName: 'User',
items: initialData['User'],
Expand Down

0 comments on commit 556c43f

Please sign in to comment.