回答編集履歴

1

リンクを修正

2019/02/09 11:05

投稿

xenbeat
xenbeat

スコア4258

test CHANGED
@@ -14,9 +14,21 @@
14
14
 
15
15
 
16
16
 
17
- そのまま```async/await```を使って修正する方法もあるのですが、まずは以下のように基本となる```Promise```で実装してみてください。
17
+ そのまま```async/await```を使って修正する方法もあるのですが、まずは以下のサンプルコードのように基本となる```Promise```で実装してみてください。
18
18
 
19
- [https://github.com/firebase/functions-samples/blob/master/fcm-notifications/functions/index.js](https://github.com/firebase/functions-samples/blob/master/fcm-notifications/functions/index.js)
19
+ [https://github.com/firebase/functions-samples/blob/master/fcm-notifications/functions/index.js#L51](https://github.com/firebase/functions-samples/blob/master/fcm-notifications/functions/index.js#L51)
20
+
21
+ ```
22
+
23
+ Promise.all([getDeviceTokensPromise, getFollowerProfilePromise]).then(results => {
24
+
25
+ console.log(results);
26
+
27
+ });
28
+
29
+ ```
30
+
31
+
20
32
 
21
33
 
22
34