mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-04 06:24:07 +08:00
Fixed misc bugs
This commit is contained in:
parent
740844cc8f
commit
d4542b8e6a
2 changed files with 2 additions and 4 deletions
|
|
@ -1847,7 +1847,7 @@ exports.saveConfig = functions.https.onCall((request, response) => {
|
|||
|
||||
exports.addPreset = functions.https.onCall(async (request, response) => {
|
||||
try {
|
||||
if (!isTagPresetNameValid(request.name)) {
|
||||
if (!isTagPresetNameValid(request.obj.name)) {
|
||||
return { resultCode: -1 };
|
||||
} else if (request.uid === undefined || request.obj === undefined) {
|
||||
console.error(`error saving config for ${request.uid} - missing input`);
|
||||
|
|
@ -1969,7 +1969,7 @@ exports.editPreset = functions.https.onCall((request, response) => {
|
|||
exports.removePreset = functions.https.onCall((request, response) => {
|
||||
try {
|
||||
return db
|
||||
.collection(`users/${request.uid}/preset`)
|
||||
.collection(`users/${request.uid}/presets`)
|
||||
.doc(request.presetid)
|
||||
.delete()
|
||||
.then((e) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import * as ResultTagsPopup from "./result-tags-popup";
|
||||
import * as ResultFilters from "./result-filters";
|
||||
import * as Loader from "./loader";
|
||||
import * as DB from "./db";
|
||||
import * as CloudFunctions from "./cloud-functions";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue