Skip to content

Commit 06fe422

Browse files
committed
Add second benchmark to student 2 goal in seeds
1 parent c375b83 commit 06fe422

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

src/backend/db/lib/seed.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const seedfile = async (databaseUrl: string) => {
174174
})
175175
.execute();
176176

177-
const { benchmark_id: benchmark_student_2_goal_id } = await db
177+
const { benchmark_id: benchmark_1_student_2_goal_id } = await db
178178
.insertInto("benchmark")
179179
.values({
180180
goal_id: student_2_goal_id,
@@ -197,7 +197,35 @@ export const seedfile = async (databaseUrl: string) => {
197197
await db
198198
.insertInto("task")
199199
.values({
200-
benchmark_id: benchmark_student_2_goal_id,
200+
benchmark_id: benchmark_1_student_2_goal_id,
201+
assignee_id: firstuser.user_id,
202+
})
203+
.execute();
204+
205+
const { benchmark_id: benchmark_2_student_2_goal_id } = await db
206+
.insertInto("benchmark")
207+
.values({
208+
goal_id: student_2_goal_id,
209+
status: "In Progress",
210+
description: "Insert handouts into notebooks in appropriate place",
211+
setup: "N/A",
212+
instructions:
213+
"Have student insert sorted notes into notebooks in appropriate position by dates",
214+
materials: "Pen, folders for each class",
215+
frequency: "Tuesdays and Fridays",
216+
target_level: 80,
217+
baseline_level: 0,
218+
attempts_per_trial: 4,
219+
number_of_trials: 16,
220+
metric_name: "",
221+
})
222+
.returning("benchmark_id")
223+
.executeTakeFirstOrThrow();
224+
225+
await db
226+
.insertInto("task")
227+
.values({
228+
benchmark_id: benchmark_2_student_2_goal_id,
201229
assignee_id: firstuser.user_id,
202230
})
203231
.execute();

0 commit comments

Comments
 (0)