Delete the most recent beaten game from a user is no paramete is supplied
This commit is contained in:
parent
13b0825627
commit
b448a46249
|
@ -16,7 +16,8 @@ module.exports = {
|
|||
result = await deleteBeatenGameNum(beatGameNumber, userDatabaseEntry);
|
||||
}
|
||||
else {
|
||||
// TODO: Delete most recent game entry.
|
||||
const recentGame = await getRecentGameEntry(userDatabaseEntry.id);
|
||||
result = await deleteBeatenGameId(recentGame.id, userDatabaseEntry);
|
||||
}
|
||||
|
||||
if (result) {
|
||||
|
|
Loading…
Reference in New Issue