Skip to content

Commit

Permalink
fix(firebase-x): return document id (#3386)
Browse files Browse the repository at this point in the history
* fix for #3385

* adding spaces
  • Loading branch information
aalshberi authored May 5, 2020
1 parent 1db0ff7 commit 61bbe39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/@ionic-native/plugins/firebase-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ export class FirebaseX extends IonicNativePlugin {
* @param {function} error - callback function which will be passed a {string} error message as an argument.
*/
@Cordova()
addDocumentToFirestoreCollection(document: object, collection: string, success: () => void, error: (err: string) => void): Promise<any> {
addDocumentToFirestoreCollection(document: object, collection: string, success: (id: string) => void, error: (err: string) => void): Promise<any> {
return;
}

Expand Down Expand Up @@ -652,7 +652,7 @@ export class FirebaseX extends IonicNativePlugin {
* @param {function} error - callback function which will be passed a {string} error message as an argument.
*/
@Cordova()
fetchDocumentInFirestoreCollection(documentId: string, collection: string, success: () => void, error: (err: string) => void): Promise<any> {
fetchDocumentInFirestoreCollection(documentId: string, collection: string, success: (doc: any) => void, error: (err: string) => void): Promise<any> {
return;
}

Expand All @@ -664,7 +664,7 @@ export class FirebaseX extends IonicNativePlugin {
* @param {function} error - callback function which will be passed a {string} error message as an argument.
*/
@Cordova()
fetchFirestoreCollection(collection: string, success: () => void, error: (err: string) => void): Promise<any> {
fetchFirestoreCollection(collection: string, success: (docs: any) => void, error: (err: string) => void): Promise<any> {
return;
}
}

0 comments on commit 61bbe39

Please sign in to comment.