Merge pull request #110 from payloadcms/feat/global-api-tweak

Suggestion: Payloads Local api should use 'slug' instead of 'global' for Global operations
This commit is contained in:
James Mikrut
2021-03-29 08:41:38 -04:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
async function findOne(options) {
const {
global: globalSlug,
slug: globalSlug,
depth,
locale = this?.config?.localization?.defaultLocale,
fallbackLocale = null,

View File

@@ -1,6 +1,6 @@
async function update(options) {
const {
global: globalSlug,
slug: globalSlug,
depth,
locale = this?.config?.localization?.defaultLocale,
fallbackLocale = null,