浏览代码

fix deleted at model

sainw 3 年之前
父节点
当前提交
a9cb39b26a
共有 1 个文件被更改,包括 3 次插入3 次删除
  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
 	}