Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 2a3f320

Browse files
Firestore anytime soon? #507
1 parent 872a004 commit 2a3f320

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

publish/scripts/installer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ var isNativeScriptCLI250 = nativeScriptVersion.indexOf("2.5.0") !== -1;
5353
if (process.argv.indexOf("config") === -1 && fs.existsSync(pluginConfigPath)) {
5454
readConfig();
5555
console.log("Config file exists (" + pluginConfigFile + ")");
56-
console.log("Config file contents: " + JSON.stringify(config));
5756
askiOSPromptResult(config);
5857
askAndroidPromptResult(config);
5958
promptQuestionsResult(config);

src/firebase.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ firebase.firestore.doc = (collectionPath: string, documentPath?: string): firest
22232223
collection: cp => firebase.firestore.collection(cp),
22242224
set: (data: any, options?: firestore.SetOptions) => firebase.firestore.set(collectionPath, docRef.getId(), data, options),
22252225
update: (data: any) => firebase.firestore.update(collectionPath, docRef.getId(), data),
2226-
delete: () => firebase.firestore.update(collectionPath, docRef.getId())
2226+
delete: () => firebase.firestore.delete(collectionPath, docRef.getId())
22272227
};
22282228

22292229
} catch (ex) {
@@ -2250,7 +2250,7 @@ firebase.firestore.add = (collectionPath: string, document: any): Promise<firest
22502250
collection: cp => firebase.firestore.collection(cp),
22512251
set: (data: any, options?: firestore.SetOptions) => firebase.firestore.set(collectionPath, documentReference.getId(), data, options),
22522252
update: (data: any) => firebase.firestore.update(collectionPath, documentReference.getId(), data),
2253-
delete: () => firebase.firestore.update(collectionPath, documentReference.getId())
2253+
delete: () => firebase.firestore.delete(collectionPath, documentReference.getId())
22542254
});
22552255
}
22562256
});

0 commit comments

Comments
 (0)