Skip to content

Commit

Permalink
fix: sort lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Sep 13, 2022
1 parent 1df3022 commit 427fac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion betanin/rest_models/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def format(enum):
LINE = TORRENTS_NS.model(
"Line",
{
"index": fields.String(
"index": fields.Integer(
description="the index of the line", example="4"
),
"data": fields.String(
Expand Down
4 changes: 2 additions & 2 deletions betanin_client/src/store/modules/torrents.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const getters = {
}

const actions = {
doFetchOne({ commit }, torrentID) {
const result = backend.secureAxios.get(`torrents/${torrentID}`)
async doFetchOne({ commit }, torrentID) {
const result = await backend.secureAxios.get(`torrents/${torrentID}`)
commit(TORRENTS_ONE_UPDATE, result.data)
},
doDeleteOne({ commit }, torrentID) {
Expand Down

0 comments on commit 427fac2

Please sign in to comment.