We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28621a7 commit 2c56933Copy full SHA for 2c56933
GoInfoGame/GoInfoGame/DataBase/DatabaseConnector.swift
@@ -215,8 +215,7 @@ class DatabaseConnector {
215
@return StoredNode
216
*/
217
func getNode(id:Int) -> StoredNode? {
218
- let compoundId = "\(id)"
219
- return realm.object(ofType: StoredNode.self, forPrimaryKey: compoundId)
+ return realm.object(ofType: StoredNode.self, forPrimaryKey: id)
220
}
221
/**
222
Fetches single Way from the database
@@ -228,8 +227,7 @@ class DatabaseConnector {
228
227
// }
229
230
func getWay(id: Int) -> StoredWay? {
231
232
- return realm.object(ofType: StoredWay.self, forPrimaryKey: compoundId)
+ return realm.object(ofType: StoredWay.self, forPrimaryKey: id)
233
234
235
0 commit comments