Skip to content

Commit

Permalink
Fix invalid config for directus_presets
Browse files Browse the repository at this point in the history
  • Loading branch information
u12206050 committed Nov 7, 2023
1 parent 680fafa commit 5f84043
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Version 1.4.0
# Version 1.4.1

- Fixed config for `directus_presets` getKey should be `${o.role ?? 'all'}-${o.collection}-${o.bookmark || 'default'}` instead of `${o.role ?? 'all'}-${o.collection}-${o.name || 'default'}`

## Version 1.4.0

- Replaced cli command for install from `npx schema-sync install` to `npx directus schema-sync install`.
- This way we directly create the required columns in the `directus_settings` table.
Expand Down
2 changes: 1 addition & 1 deletion install/schema-sync/directus_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const syncDirectusCollections = {
directus_presets: {
watch: ['presets'],
excludeFields: ['id'],
getKey: (o) => `${o.role ?? 'all'}-${o.collection}-${o.name || 'default'}`,
getKey: (o) => `${o.role ?? 'all'}-${o.collection}-${o.bookmark || 'default'}`,
query: {
filter: {
user: { _null: true}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "directus-extension-schema-sync",
"description": "Sync schema and data betwreen Directus instances",
"icon": "sync_alt",
"version": "1.4.0",
"version": "1.4.1",
"repository": {
"type": "git",
"url": "https://github.com/bcc-code/directus-schema-sync.git"
Expand Down

0 comments on commit 5f84043

Please sign in to comment.