Skip to content

Commit

Permalink
Merge pull request #41 from toririm/fix/type
Browse files Browse the repository at this point in the history
fix: typeError
  • Loading branch information
toririm authored Sep 3, 2024
2 parents 38e8eb3 + 46c666d commit 3e48d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/firebase/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const converter = <T>(schema: ZodSchema<T>) => {
toFirestore: (data: T) => {
// id は ドキュメントには含めない
const dataWithoutId = _.omit(data as object, "id");
return dataWithoutId as T;
return dataWithoutId;
},
fromFirestore: (
snapshot: QueryDocumentSnapshot,
Expand Down

0 comments on commit 3e48d15

Please sign in to comment.