Skip to content

Commit

Permalink
Fix delete order in sync command
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Pablo Fabiano committed Jul 8, 2019
1 parent 94ce8f5 commit 829f533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SyncCommand extends Command {
// and it's not contained in the file data running on this sync
// order should be respected when deleting to avoid constraint violations
const listOrder = ['snis', 'certificates', 'plugins', 'upstreams', 'consumers', 'routes', 'services']
for (const collectionKey in listOrder) {
for (const collectionKey of listOrder) {
const requests = []
const currentFileCollection = fileData[collectionKey]
const currentAdminApiCollection = adminApiData[collectionKey]
Expand Down

0 comments on commit 829f533

Please sign in to comment.