summaryrefslogtreecommitdiff
path: root/src/api/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-11 18:08:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-11 18:08:26 +0900
commitbd79352e8005bd8fe0ffa846e3318bc49b3fdd36 (patch)
tree5a6a266ae92587c654d0089d493dc57a0ac3903e /src/api/models
parent#1231 (diff)
downloadsharkey-bd79352e8005bd8fe0ffa846e3318bc49b3fdd36.tar.gz
sharkey-bd79352e8005bd8fe0ffa846e3318bc49b3fdd36.tar.bz2
sharkey-bd79352e8005bd8fe0ffa846e3318bc49b3fdd36.zip
#1204
Diffstat (limited to 'src/api/models')
-rw-r--r--src/api/models/othello-matching.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/models/othello-matching.ts b/src/api/models/othello-matching.ts
index 89fcd6df6a..5cc39cae13 100644
--- a/src/api/models/othello-matching.ts
+++ b/src/api/models/othello-matching.ts
@@ -32,6 +32,8 @@ export const pack = (
const _matching = deepcopy(matching);
+ // Rename _id to id
+ _matching.id = _matching._id;
delete _matching._id;
// Populate user