Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions dotcms-postman/src/main/resources/postman/GraphQLTests.json
Original file line number Diff line number Diff line change
Expand Up @@ -14878,9 +14878,13 @@
" throw new Error('Could not resolve default language: HTTP ' + response.code);",
" }",
" const body = response.json();",
" const id = body && body.entity && body.entity.id;",
" if (!id) {",
" throw new Error('Could not resolve default language: entity.id missing in response');",
" let id = body && body.entity && body.entity.id;",
" if (!id || id <= 0) {",
" // _getdefault can return the LANG__404 sentinel (id=-1) in fresh",
" // test environments. Fall back to English (id=1), which is always",
" // present in dotCMS starter data. See issue #35780.",
" console.log('Default language returned invalid id (' + id + '), falling back to English (id=1)');",
" id = 1;",
" }",
" pm.environment.set('defaultLanguageId', id);",
" console.log('defaultLanguageId = ' + id);",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19851,9 +19851,13 @@
" throw new Error('Could not resolve default language: HTTP ' + response.code);",
" }",
" const body = response.json();",
" const id = body && body.entity && body.entity.id;",
" if (!id) {",
" throw new Error('Could not resolve default language: entity.id missing in response');",
" let id = body && body.entity && body.entity.id;",
" if (!id || id <= 0) {",
" // _getdefault can return the LANG__404 sentinel (id=-1) in fresh",
" // test environments. Fall back to English (id=1), which is always",
" // present in dotCMS starter data. See issue #35780.",
" console.log('Default language returned invalid id (' + id + '), falling back to English (id=1)');",
" id = 1;",
" }",
" pm.environment.set('defaultLanguageId', id);",
" console.log('defaultLanguageId = ' + id);",
Expand Down
Loading