adding data listening, user getching and using more of recoil
This commit is contained in:
@@ -15,13 +15,15 @@ import Collections from "./collections";
|
||||
export default class ConversationService {
|
||||
private db: Firestore = getFirestore();
|
||||
|
||||
async test() {
|
||||
async test(): Promise<boolean> {
|
||||
const docRef = doc(this.db, "test", "test");
|
||||
await setDoc(
|
||||
docRef,
|
||||
{ hi: " hiii", lastUpdatedDate: serverTimestamp() },
|
||||
{ merge: true }
|
||||
);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
async createConversation(
|
||||
|
||||
Reference in New Issue
Block a user