Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matolah authored Jul 9, 2023
1 parent 7a95f31 commit 793574b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ class MyLocalEntity: CoreDataEntity {
typealias AnyRemoteFirestoreEntity = AnyRemoteEntity<MyRemoteEntityIdentifier>

struct MyRemoteEntity: RemoteEntity {
static var collectionName = "my-remote-entity-collection"
static let collectionName = MyRemoteEntityIdentifier.collectionName

let id: String
}

enum MyRemoteEntityIdentifier: String, AnyRemoteEntityIdentifier {
case mock

static var collectionName = "my-remote-entity-collection"
static let collectionName = "my-remote-entity-collection"

var metatype: any RemoteEntity.Type {
switch self {
Expand Down

0 comments on commit 793574b

Please sign in to comment.