0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

chore: clean up astro.data

This commit is contained in:
bholmesdev 2024-02-02 17:45:20 -05:00
parent 39b63a2e5a
commit 57a85cbdee

View file

@ -1,11 +1,9 @@
/// <reference path="./src/env.d.ts" /> import { Ingredient, Recipe, defineData } from 'astro:db';
import { defineData, Ingredient, Recipe } from 'astro:db'; export default defineData(async ({ seed, mode }) => {
export default defineData(async ({ seed }) => {
const pancakes = await seed(Recipe, { const pancakes = await seed(Recipe, {
title: 'Pancakes', title: 'Pancakes',
description: 'A delicious breakfast', description: 'A delicious breakfast treat',
}); });
seed(Ingredient, [ seed(Ingredient, [