Skip to content

Commit bb72fe6

Browse files
Update db.server.ts (#51)
Co-authored-by: Kent C. Dodds <[email protected]>
1 parent 2937a97 commit bb72fe6

File tree

44 files changed

+44
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+44
-0
lines changed

exercises/01.form-validation/01.problem.form-validation/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/01.form-validation/01.solution.form-validation/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/01.form-validation/02.problem.server-validation/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/01.form-validation/02.solution.server-validation/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/01.form-validation/03.problem.no-validate/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/01.form-validation/03.solution.no-validate/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/02.accessibility/01.problem.labels/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/02.accessibility/01.solution.labels/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/02.accessibility/02.problem.aria/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

exercises/02.accessibility/02.solution.aria/app/utils/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function updateNote({
169169
id,
170170
filepath,
171171
altText: image.altText,
172+
contentType: image.file?.type,
172173
},
173174
})
174175
} else if (image.file) {

0 commit comments

Comments
 (0)