...
|
...
|
@@ -53,6 +53,7 @@ func (repository *UsersRepository) FindOne(queryOptions map[string]interface{}) |
|
|
query.SetWhere("status = ?", "status")
|
|
|
query.SetWhere("phone = ?", "phone")
|
|
|
query.SetWhere("company_id = ?", "companyId")
|
|
|
query.SetWhere(`delete_at is null`, "deleteAtIsNull")
|
|
|
if err := query.First(); err != nil {
|
|
|
return nil, fmt.Errorf("query row not found")
|
|
|
}
|
...
|
...
|
|