mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 05:43:47 +08:00
not using cloud functions for saving lb memory anymore
This commit is contained in:
parent
2dcebbcfee
commit
6ab04105cb
1 changed files with 12 additions and 12 deletions
|
@ -2420,18 +2420,18 @@ function showResult(difficultyFailed = false) {
|
|||
globalLbString + "<br>" + dailyLbString
|
||||
);
|
||||
|
||||
CloudFunctions.saveLbMemory({
|
||||
uid: firebase.auth().currentUser.uid,
|
||||
obj: db_getSnapshot().lbMemory,
|
||||
}).then((d) => {
|
||||
if (d.data.returnCode === 1) {
|
||||
} else {
|
||||
Misc.showNotification(
|
||||
`Error saving lb memory ${d.data.message}`,
|
||||
4000
|
||||
);
|
||||
}
|
||||
});
|
||||
// CloudFunctions.saveLbMemory({
|
||||
// uid: firebase.auth().currentUser.uid,
|
||||
// obj: db_getSnapshot().lbMemory,
|
||||
// }).then((d) => {
|
||||
// if (d.data.returnCode === 1) {
|
||||
// } else {
|
||||
// Misc.showNotification(
|
||||
// `Error saving lb memory ${d.data.message}`,
|
||||
// 4000
|
||||
// );
|
||||
// }
|
||||
// });
|
||||
}
|
||||
if (
|
||||
e.data.dailyLeaderboard === null &&
|
||||
|
|
Loading…
Reference in a new issue