fixed updateFile transaction
gitea/salix/dev There was a failure building this commit
Details
gitea/salix/dev There was a failure building this commit
Details
This commit is contained in:
parent
4f73d1eb5a
commit
3f651d76d5
|
@ -79,10 +79,10 @@ module.exports = Self => {
|
|||
}, myOptions);
|
||||
|
||||
if (hasAttachedFile)
|
||||
updatedDms = await uploadNewFile(ctx, dms, myOptions);
|
||||
await uploadNewFile(ctx, dms, myOptions);
|
||||
|
||||
if (tx) await tx.commit();
|
||||
return updatedDms;
|
||||
return dms;
|
||||
} catch (e) {
|
||||
if (tx) await tx.rollback();
|
||||
throw e;
|
||||
|
|
Loading…
Reference in New Issue