Przeglądaj źródła

fix deleted at model

sainw 3 lat temu
rodzic
commit
a9cb39b26a
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      client/model.go

+ 3 - 3
client/model.go

@@ -30,10 +30,10 @@ func modelFromMap(m map[string]interface{}) *Model {
 	isCreated := false
 	isUpdated := false
 	isDeleted := false
-	if createdAtStr == updatedAtStr {
-		isCreated = true
-	} else if deletedAtStr != "" {
+	if deletedAtStr != "" {
 		isDeleted = true
+	} else if createdAtStr == updatedAtStr {
+		isCreated = true
 	} else {
 		isUpdated = true
 	}