Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
🌲 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Nov 9, 2019
1 parent 2dee97a commit dd3cb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FlatStore/FlatStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ extension FlatStore {
public func get<S: Sequence, T: FlatStoreObjectType>(by ids: S) -> [T] where S.Element == FlatStoreObjectIdentifier<T> {
lock.lock(); defer { lock.unlock() }
return ids.compactMap { key in
storage.table(name: T.FlatStoreID.tableName)?.byID[key] as? T
storage.table(name: T.FlatStoreID.tableName)?.byID[key.raw] as? T
}
}

Expand Down Expand Up @@ -235,7 +235,7 @@ extension FlatStore {

lock.lock()
storage.update(inTable: T.FlatStoreID.tableName) { (table) in
table.byID.removeValue(forKey: key.asAny)
table.byID.removeValue(forKey: key.raw)
}
lock.unlock()

Expand Down

0 comments on commit dd3cb18

Please sign in to comment.