Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
Fix table header comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jorinvo committed Jan 28, 2019
1 parent fe5ea7d commit 70e86b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject googlesheets-sql-sync "0.4.7"
(defproject googlesheets-sql-sync "0.4.8"
:description "Keep your SQL database in sync with Google Sheets"
:url "https://github.com/jorinvo/googlesheets-sql-sync"
:license {:name "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/googlesheets_sql_sync/db.clj
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
(ensure-size 3 [1 2])))

(defn- check-header-conflicts [new-headers old-headers]
(when (not= new-headers old-headers)
(when (not= (sort new-headers) (sort old-headers))
(throw (ex-info (str "Conflicting old and new table headers\nold: " (string/join ", " old-headers) "\nnew: " (string/join ", " new-headers))
{:new-headers new-headers
:old-headers old-headers}))))
Expand Down

0 comments on commit 70e86b1

Please sign in to comment.