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

Commit 70e86b1

Browse files
committed
Fix table header comparison
1 parent fe5ea7d commit 70e86b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject googlesheets-sql-sync "0.4.7"
1+
(defproject googlesheets-sql-sync "0.4.8"
22
:description "Keep your SQL database in sync with Google Sheets"
33
:url "https://github.com/jorinvo/googlesheets-sql-sync"
44
:license {:name "MIT"

src/googlesheets_sql_sync/db.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
(ensure-size 3 [1 2])))
7272

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

0 commit comments

Comments
 (0)