diff --git a/betanin/rest_models/response.py b/betanin/rest_models/response.py index 6eeaa8f..35182b4 100644 --- a/betanin/rest_models/response.py +++ b/betanin/rest_models/response.py @@ -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( diff --git a/betanin_client/src/store/modules/torrents.js b/betanin_client/src/store/modules/torrents.js index 658f975..8525c8d 100644 --- a/betanin_client/src/store/modules/torrents.js +++ b/betanin_client/src/store/modules/torrents.js @@ -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) {