Skip to content

Commit 31d9a15

Browse files
fix lint
1 parent 76aa9d7 commit 31d9a15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/entity.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ export const update = (http, type, params = {}) => {
155155
delete json.deleted_at
156156
delete json.updated_at
157157
delete json.updated_by
158-
158+
159159
// If param has data for this entity type, merge it with the json object
160160
if (param && param[type]) {
161161
Object.assign(json, param[type])
162162
}
163-
163+
164164
if (type) {
165165
updateData[type] = json
166166
if (type === 'entry') updateData[type] = cleanAssets(updateData[type])

test/sanity-check/api/locale-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('Locale api Test', () => {
9999
.fetch()
100100
.then((locale) => {
101101
// locale.fallback_locale = 'en-at'
102-
return locale.update({locale:{ fallback_locale: 'en-at' }})
102+
return locale.update({ locale: { fallback_locale: 'en-at' } })
103103
})
104104
.then((locale) => {
105105
expect(locale.code).to.be.equal('hi-in')

0 commit comments

Comments
 (0)