mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
fix: unable to rename freshly created theme (fehmer) (#5486)
This commit is contained in:
parent
0715352c5a
commit
d5b3103967
|
@ -657,9 +657,7 @@ export async function addCustomTheme(
|
|||
const { name, colors } = req.body;
|
||||
|
||||
const addedTheme = await UserDAL.addTheme(uid, { name, colors });
|
||||
return new MonkeyResponse("Custom theme added", {
|
||||
theme: addedTheme,
|
||||
});
|
||||
return new MonkeyResponse("Custom theme added", addedTheme);
|
||||
}
|
||||
|
||||
export async function removeCustomTheme(
|
||||
|
|
|
@ -353,7 +353,7 @@ export async function addCustomTheme(
|
|||
|
||||
const newCustomTheme: MonkeyTypes.CustomTheme = {
|
||||
...theme,
|
||||
_id: response.data._id as string,
|
||||
_id: response.data._id,
|
||||
};
|
||||
|
||||
dbSnapshot.customThemes.push(newCustomTheme);
|
||||
|
|
Loading…
Reference in a new issue