Skip to content

Commit

Permalink
fix(wallet_event): fix issues from merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
joonaun93 committed Oct 1, 2023
1 parent 7351e1f commit 89eaa15
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
2 changes: 1 addition & 1 deletion server/handlers/transferHandler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {
} = require('./schemas');

const transferPost = async (req, res) => {
const validatedData = await transferPostSchema.validateAsync(req.body, {
const validatedBody = await transferPostSchema.validateAsync(req.body, {
abortEarly: false,
});
const transferService = new TransferService();
Expand Down
13 changes: 0 additions & 13 deletions server/repositories/TransferRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,6 @@ class TransferRepository extends BaseRepository {
'destination_wallet.id',
)
.where((builder) => this.whereBuilder(filter, builder));

let order = 'desc';
let column = 'transfer.created_at';

if (limitOptions) {
if (limitOptions.order) {
order = limitOptions.order;
}
if (limitOptions.sort_by) {
column = limitOptions.sort_by;
}
}
promise = promise.orderBy(column, order);

let order = 'desc';
let column = 'transfer.created_at';
Expand Down
11 changes: 1 addition & 10 deletions server/services/TransferService.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,7 @@ class TransferService {
}

async getByFilter(query, walletLoginId) {
const {
state,
wallet,
limit,
offset,
before,
after,
sort_by,
order,
} = query;
const { state, wallet, limit, offset, before, after } = query;

let walletId;

Expand Down

0 comments on commit 89eaa15

Please sign in to comment.