Skip to content

Commit

Permalink
fix auto id not working
Browse files Browse the repository at this point in the history
  • Loading branch information
tylim88 committed May 29, 2024
1 parent 17013df commit c30f7aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firelordrn",
"version": "2.9.0",
"version": "2.9.1",
"description": "🔥 High Precision Typescript Wrapper for Firestore React Native, Providing Unparalleled Type Safe and Dev Experience",
"author": "tylim",
"license": "MIT",
Expand Down
8 changes: 5 additions & 3 deletions src/refs/doc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DocCreator } from '../types'
import { DocCreator, OriCollectionReference } from '../types'
import { buildPathFromColIDsAndDocIDs } from './utils'
import fs from '@react-native-firebase/firestore'

Expand All @@ -18,9 +18,11 @@ export const docCreator: DocCreator =
})
)
} else {
return fs().doc(
return (
// @ts-expect-error
collectionReferenceOrDocumentId
(collectionReferenceOrDocumentId as OriCollectionReference)
//
.doc()
)
}
}

0 comments on commit c30f7aa

Please sign in to comment.