mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-10 05:17:03 +08:00
changed oncall to on request
This commit is contained in:
parent
0b08f536b3
commit
49952512e3
1 changed files with 1 additions and 1 deletions
|
|
@ -1173,7 +1173,7 @@ exports.generatePairingCode = functions
|
|||
timeoutSeconds: 100,
|
||||
memory: "2GB",
|
||||
})
|
||||
.https.onCall((request, response) => {
|
||||
.https.onRequest((request, response) => {
|
||||
response.set("Access-Control-Allow-Origin", "*");
|
||||
if (request.method === "OPTIONS") {
|
||||
// Send response to OPTIONS requests
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue