refactor(Tasks API): ghanged method to GET
gitea/salix/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Joan Sanchez 2022-07-26 11:47:43 +02:00
parent 2122f8adac
commit f4825488c6
2 changed files with 4 additions and 5 deletions

View File

@ -11,11 +11,11 @@ module.exports = Self => {
}, },
http: { http: {
path: `/deleteTrashFiles`, path: `/deleteTrashFiles`,
verb: 'POST' verb: 'GET'
} }
}); });
Self.deleteTrashFiles = async(options) => { Self.deleteTrashFiles = async options => {
const tx = await Self.beginTransaction({}); const tx = await Self.beginTransaction({});
const myOptions = {}; const myOptions = {};
@ -47,7 +47,6 @@ module.exports = Self => {
await dms.destroy(myOptions); await dms.destroy(myOptions);
} }
if (tx) await tx.commit(); if (tx) await tx.commit();
} catch (e) { } catch (e) {
if (tx) await tx.rollback(); if (tx) await tx.rollback();

View File

@ -12,7 +12,7 @@ module.exports = Self => {
}, },
http: { http: {
path: `/downloadImages`, path: `/downloadImages`,
verb: 'POST' verb: 'GET'
} }
}); });