Skip to content

Commit

Permalink
feat: customize wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
OlhaD committed Apr 20, 2024
1 parent 3ae0efa commit 3bed228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions server/handlers/walletHandler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ const walletPatch = async (req, res) => {
abortEarly: false,
});

const { id, about, logo_url, cover_url } = validatedBody;
const { wallet_id } = req;
const { about, logo_url, cover_url } = validatedBody;
const walletService = new WalletService();
const returnedWallet = await walletService.updateWallet(
id,
wallet_id,
about,
logo_url,
cover_url,
Expand Down Expand Up @@ -188,4 +189,4 @@ module.exports = {
walletSingleGet,
walletBatchCreate,
walletBatchTransfer,
};
};
2 changes: 0 additions & 2 deletions server/handlers/walletHandler/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ const walletPostSchema = Joi.object({
});

const walletPatchSchema = Joi.object({
id: Joi.string().uuid().required(),
name: Joi.string().required(),
logo_url: Joi.string(),
cover_url: Joi.string(),
about: Joi.string(),
Expand Down

0 comments on commit 3bed228

Please sign in to comment.