Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Forgot 2 GETs in the last push
Browse files Browse the repository at this point in the history
  • Loading branch information
ecyr20 committed Apr 19, 2024
1 parent 7eed7f2 commit fcef5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Services/FamilyTagMechListService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public async Task<IReadOnlyList<FamilyTagMechList>> GetFamilyMechListsAsync()
using var connection = await database.OpenConnectionAsync();
using var command = connection.CreateCommand();

command.CommandText = "SELECT * FROM Family_TagMechanism_List";
command.CommandText = "SELECT * FROM Family_TagMechanism_List WHERE isDel = 0";
return await ReadAllAsync(await command.ExecuteReaderAsync());
}

Expand Down
2 changes: 1 addition & 1 deletion Services/PropertyListService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task<IReadOnlyList<Property>> GetPropertiesAsync(Guid parent_uuid)

command.CommandText = @"SELECT * FROM Property_List RIGHT JOIN Property_Version ON Property_List.uuid = Property_Version.parent_property_uuid AND Property_List.version = Property_Version.frozen_version
LEFT JOIN PropertyType ON Property_Version.property_type = PropertyType.uuid
WHERE Property_List.parent_uuid = @parent_uuid ORDER BY datetime DESC;";
WHERE Property_List.parent_uuid = @parent_uuid AND Property_List.isDel = 0 AND Property_Version.isDel = 0 ORDER BY datetime DESC;";
command.Parameters.AddWithValue("@parent_uuid", parent_uuid);

return await ReadAllPropertiesAsync(await command.ExecuteReaderAsync());
Expand Down

0 comments on commit fcef5e7

Please sign in to comment.