Skip to content

Commit 1a3aeae

Browse files
committed
Updated realm object creation in DatabaseConnecter and using it in other places.
1 parent 3b66068 commit 1a3aeae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GoInfoGame/GoInfoGame/DataBase/DatabaseConnector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import osmparser
1414
class DatabaseConnector {
1515
static let shared = DatabaseConnector()
1616

17-
private let realm: Realm
17+
let realm: Realm
1818

1919
private init() {
2020
// Initialize Realm instance

GoInfoGame/GoInfoGame/quests/QuestUndoManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MapUndoManager {
1515
private let realm: Realm
1616

1717
private init() {
18-
realm = try! Realm()
18+
realm = DatabaseConnector.shared.realm
1919
}
2020

2121
var updateTagsHandler: ((_ changeset: StoredChangeset?) -> Void)?

0 commit comments

Comments
 (0)