Nemazat všechna data při smazání pizza day
This commit is contained in:
1 parent
cdcd620ee5
commit
5e94009898
2 files changed
+5
-3
No files matched your search
@@ -51,7 +51,9 @@ export function deletePizzaDay(login: string) {
|
||||
if (clientData.pizzaDay.creator !== login) {
|
||||
throw Error("Login uživatele se neshoduje se zakladatelem Pizza Day");
|
||||
}
|
||||
db.delete(today);
|
||||
delete clientData.pizzaDay;
|
||||
db.set(today, clientData);
|
||||
return clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user