質問編集履歴
1
内容の更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -164,4 +164,42 @@
|
|
164
164
|
|
165
165
|
しかし、処理が正常に機能することもあり訳が分からず困っております。
|
166
166
|
|
167
|
+
私の理解としては、以下処理が終了する前に
|
168
|
+
|
169
|
+
```ここに言語を入力
|
170
|
+
|
171
|
+
request(options, function (error, response, body) {
|
172
|
+
|
173
|
+
if (error) throw new Error(error);
|
174
|
+
|
175
|
+
console.log(body["id"]);
|
176
|
+
|
177
|
+
console.log(response);
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
// ここが走ったり走らなかったり、
|
184
|
+
|
185
|
+
console.log("2");
|
186
|
+
|
187
|
+
// 以下の処理がrealtime databaseへ保存する処理
|
188
|
+
|
189
|
+
db.ref(`/Users/${user}/`).update({
|
190
|
+
|
191
|
+
"playerid": body["id"]
|
192
|
+
|
193
|
+
});
|
194
|
+
|
195
|
+
```
|
196
|
+
|
197
|
+
以下の処理が終了しているため上記の処理が動作しないと考えております。
|
198
|
+
|
199
|
+
```ここに言語を入力
|
200
|
+
|
201
|
+
exports.deviceRegister = functions.auth.user().onCreate(event =>
|
202
|
+
|
203
|
+
```
|
204
|
+
|
167
205
|
なぜ起こるものなのか、ご存知の方いましたらご教授のほどよろしくお願いします。
|