vona-module-a-orm 5.1.29 → 5.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,20 +127,17 @@ export class ServiceTransaction extends BeanBase {
127
127
  if (fiber) {
128
128
  await fiber.doRollback();
129
129
  this.transactionState.remove(this._db);
130
+ await fiber.compensatesDone();
130
131
  }
131
132
  throw err;
132
133
  }
133
- try {
134
- if (fiber) {
134
+ if (fiber) {
135
+ try {
135
136
  await fiber.doCommit();
137
+ } finally {
136
138
  this.transactionState.remove(this._db);
137
139
  }
138
- } catch (err) {
139
- if (fiber) {
140
- await fiber.doRollback();
141
- this.transactionState.remove(this._db);
142
- }
143
- throw err;
140
+ await fiber.commitsDone();
144
141
  }
145
142
  return res;
146
143
  }
@@ -1,6 +1,7 @@
1
1
  export interface ITableColumn {
2
2
  type: string;
3
3
  default: any;
4
+ columnType?: string;
4
5
  }
5
6
 
6
7
  export type ITableColumns = Record<string, ITableColumn>;