@sequoialabs/payload-plugin-reversia 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,7 +171,12 @@ export function createResourcesInsertEndpoint(pluginConfig, collectionsMap, glob
171
171
  // rejects with "invalid relationships: [object Object]".
172
172
  const [sourceDoc, previousDoc] = await Promise.all([
173
173
  req.payload.findGlobal({ slug: globalSlug, locale: item.sourceLocale, depth: 0 }),
174
- req.payload.findGlobal({ slug: globalSlug, locale: item.targetLocale, depth: 0 }),
174
+ req.payload.findGlobal({
175
+ slug: globalSlug,
176
+ locale: item.targetLocale,
177
+ depth: 0,
178
+ fallbackLocale: false,
179
+ }),
175
180
  ]);
176
181
  const { updateData, diff, acceptedFields } = applyTranslations({
177
182
  allowedFields,
@@ -220,6 +225,7 @@ export function createResourcesInsertEndpoint(pluginConfig, collectionsMap, glob
220
225
  id: item.id,
221
226
  locale: item.targetLocale,
222
227
  depth: 0,
228
+ fallbackLocale: false,
223
229
  }),
224
230
  ]);
225
231
  const { updateData, diff, acceptedFields } = applyTranslations({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequoialabs/payload-plugin-reversia",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "author": {
5
5
  "name": "Jean Walrave",
6
6
  "email": "contact@reversia.tech",