Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d820e4c

Browse files
committed
Merge branch 'v2.0' into v3.0
2 parents a6bee84 + f6cb745 commit d820e4c

File tree

4 files changed

+4
-32
lines changed

4 files changed

+4
-32
lines changed

‎api/ToDoHandlerEFCore.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,8 @@ public async Task<IActionResult> Patch(
168168
var targetTodo = this._todoContext.Todos.Where(t => t.Owner == cp.UserId).FirstOrDefault(t => t.Id == id);
169169
if (targetTodo == null)
170170
return new NotFoundResult();
171-
172-
//targetTodo.Id = newTodo.Id;
173-
targetTodo.Title = newTodo.Title;
171+
172+
targetTodo.Title = newTodo.Title ?? targetTodo.Title;
174173
targetTodo.Completed = newTodo.Completed;
175174

176175
await this._todoContext.SaveChangesAsync();

‎cleanup.v1.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

‎cleanup.v2.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,21 @@ set -euo pipefail
44
echo "Preparing sample for v2.0..."
55

66
# cleanup API binaries
7-
echo "Cleaning ./api ..."
87
rm -rf ./api/bin
98
rm -rf ./api/obj
109

1110
# cleanup CLIENT
12-
echo "Cleaning ./client ..."
1311
rm -rf ./client/node_modules
1412
rm -rf ./client/dist
13+
rm -rf ./client/src
1514

1615
# cleanup DATABASE
17-
echo "Cleaning ./database ..."
1816
rm -rf ./database/declarative-deploy
1917
rm -rf ./database/imperative-deploy
2018
rm -rf ./database/deploy/bin
2119
rm -rf ./database/deploy/obj
2220

2321
# cleanup TEST
24-
echo "Cleaning ./test ..."
2522
rm -rf ./test
2623

2724
echo "Done"

‎client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h1>todos</h1>
6565

6666
<script src="https://unpkg.com/vue@2.6.14"></script>
6767
<script>
68-
API = "api/todo/";
68+
API = "api/ef/todo/";
6969
HEADERS = { 'Accept': 'application/json', 'Content-Type': 'application/json' };
7070

7171
// visibility filters

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /