Skip to content

Commit

Permalink
Merge pull request #187 from Gruppio/master
Browse files Browse the repository at this point in the history
Fix Bug - Passing the meta to Entry
  • Loading branch information
onmyway133 authored Jun 7, 2018
2 parents cc82d70 + b2bec8b commit c7fc68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shared/Storage/TypeWrapperStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class TypeWrapperStorage {
extension TypeWrapperStorage: StorageAware {
public func entry<T: Codable>(ofType type: T.Type, forKey key: String) throws -> Entry<T> {
let wrapperEntry = try internalStorage.entry(ofType: TypeWrapper<T>.self, forKey: key)
return Entry(object: wrapperEntry.object.object, expiry: wrapperEntry.expiry)
return Entry(object: wrapperEntry.object.object, expiry: wrapperEntry.expiry, meta: wrapperEntry.meta)
}

public func removeObject(forKey key: String) throws {
Expand Down

0 comments on commit c7fc68a

Please sign in to comment.