Ver código fonte

fix deleted at model

sainw 3 anos atrás
pai
commit
a9cb39b26a
1 arquivos alterados com 3 adições e 3 exclusões
  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
 	}