Skip to content

Commit

Permalink
✨ (AccountKit): Add DatabaseOperations shared instance
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Feb 14, 2024
1 parent 5938816 commit f0c7315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modules/AccountKit/Sources/Database/DatabaseOperations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class DatabaseOperations {

// MARK: Public

public static let shared = DatabaseOperations()

public func create<T: AccountDocument>(data: T, in collection: DatabaseCollection) -> AnyPublisher<T, Error> {
Future<T, Error> { promise in
let docRef = self.database.collection(collection.rawValue).document()
Expand Down

0 comments on commit f0c7315

Please sign in to comment.