File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import type { WorkBook , WorkBookTaskBase , WorkBookTasksBase } from '$lib/types/workbook' ;
22
3- export async function getWorkBookTasks ( workBook : WorkBook ) : Promise < WorkBookTasksBase > {
3+ export async function getWorkBookTasks ( workBook : Omit < WorkBook , 'id' > ) : Promise < WorkBookTasksBase > {
44 const workBookTasks : WorkBookTasksBase = await Promise . all (
55 workBook . workBookTasks . map ( async ( workBookTask : WorkBookTaskBase ) => {
66 return {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export async function getWorkBookByUrlSlug(urlSlug: string): Promise<WorkBook |
6363
6464// See:
6565// https://www.prisma.io/docs/orm/prisma-schema/data-model/relations#create-a-record-and-nested-records
66- export async function createWorkBook ( workBook : WorkBook ) : Promise < void > {
66+ export async function createWorkBook ( workBook : Omit < WorkBook , 'id' > ) : Promise < void > {
6767 const slug = workBook . urlSlug ;
6868
6969 if ( slug && ( await isExistingUrlSlug ( slug ) ) ) {
You can’t perform that action at this time.
0 commit comments