質問編集履歴

1

console.logをはいている箇所と、エラー発生行を追記

2019/02/25 12:21

投稿

cherish
cherish

スコア47

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,8 @@
12
12
 
13
13
  db.collection("notifications").where("type", "==", "like_comment").where("comment_ref", "==", like_snap.data().comment_ref).get().then((notice) => {
14
14
 
15
+    console.log(notice)
16
+
15
17
  if(notice.docs[0]) {
16
18
 
17
19
  notice.docs[0].ref.update({
@@ -19,6 +21,8 @@
19
21
  updated_at: admin.firestore.FieldValue.serverTimestamp()
20
22
 
21
23
  })
24
+
25
+ <=エラー発生行
22
26
 
23
27
  .then(() => {
24
28