Skip to content

Commit

Permalink
refactor: Rename normalizeLinks into normalizeAppsLinks
Browse files Browse the repository at this point in the history
This replies to #1506 (comment)
  • Loading branch information
Ldoppea committed Sep 24, 2024
1 parent b410ac9 commit ef0a008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cozy-pouch-link/src/jsonapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export const normalizeDoc = (doc, doctype, client) => {
delete normalizedDoc.rev
}

normalizeLinks(normalizedDoc, doctype, client)
normalizeAppsLinks(normalizedDoc, doctype, client)

return normalizedDoc
}

const normalizeLinks = (docRef, doctype, client) => {
const normalizeAppsLinks = (docRef, doctype, client) => {
if (doctype !== 'io.cozy.apps') {
return
}
Expand Down

0 comments on commit ef0a008

Please sign in to comment.