Browse Source

fix deleted at model

sainw 3 years ago
parent
commit
a9cb39b26a
1 changed files with 3 additions and 3 deletions
  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
 	}