-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This issue was discovered by @Merkur39. When creating an io.cozy.permissions for a share by link, the expires_at field was set to null in CouchDB, even if the field was declared as omitempty. A nil pointer to a time.Time is not considered by Go as an empty value for a field of the type interface{}. So, we need to use the empty value of type interface{} instead to fix the JSON marshaling.
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters