Skip to content

Commit

Permalink
quickmongo - fix getAll
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico105 committed Aug 5, 2022
1 parent 97b9a13 commit cee7f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/custom-databases/quickmongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const GiveawayManagerWithOwnDatabase = class extends GiveawaysManager {
// This function is called when the manager needs to get all giveaways which are stored in the database.
async getAllGiveaways() {
// Get all giveaways from the database
return await giveawayDB.all();
return (await giveawayDB.all()).map((element) => element.data);
}

// This function is called when a giveaway needs to be saved in the database.
Expand Down

0 comments on commit cee7f6b

Please sign in to comment.