-
-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Assume a struct MyParseInstallation
conforming to ParseInstallation
.
If I understand the code correctly, calling MyParseInstallation.current?.save { (result: Result<AppInstallInfo, ParseError>) in [...] }
intends to persist the ParseInstallation data to the server.
However, calling MyParseInstallation.current?.fetch(completion: { (result: Result<AppInstallInfo, ParseError>) in [...]}
always returns a failure.
Problem seems to be that objectId
of MyParseInstallation
is not persisted to the ParseKeyValueStore
. Thus, the fetch returns ParseError(code: ParseSwift.ParseError.Code.unknownError, message: "Cannot fetch an object without id")
Another effect of not storing objectId
in the key-value store is that multiple calls to MyParseInstallation.current?.save
result in multiple ParseInstallation objects being created on the server, all with the same data but different ids.
Tested on both the latest release and the removeDispatch
branch.