-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: Allow patching asset's meta field #1095
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #1095 +/- ##
===================================================
+ Coverage 49.19942% 49.22405% +0.02462%
===================================================
Files 66 66
Lines 4122 4124 +2
Branches 724 724
===================================================
+ Hits 2028 2030 +2
Misses 1851 1851
Partials 243 243
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -576,6 +580,7 @@ app.patch( | |||
async (req, res) => { | |||
// these are the only updateable fields | |||
let { name, meta, storage } = req.body as AssetPatchPayload; | |||
validateAssetMeta(meta); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it!
Implements #1090