rez_core 5.0.129 → 5.0.130
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.
package/package.json
CHANGED
|
@@ -189,21 +189,13 @@ export class EntityListService {
|
|
|
189
189
|
parentType: string | null,
|
|
190
190
|
parentId: number | null,
|
|
191
191
|
) {
|
|
192
|
-
|
|
193
192
|
const result = await repo
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const seqNo = result?.seq_no ?? 0;
|
|
193
|
+
.createQueryBuilder()
|
|
194
|
+
.select('MAX(id)', 'seq_no')
|
|
195
|
+
.getRawOne();
|
|
199
196
|
|
|
200
|
-
const
|
|
201
|
-
// if (parentId) {
|
|
202
|
-
// query += ` AND parent_id = ? AND parent_type = ? `;
|
|
203
|
-
// argsObjectList.push(parentId);
|
|
204
|
-
// argsObjectList.push(parentType);
|
|
205
|
-
// }
|
|
197
|
+
const seqNo = result?.seq_no ?? 0;
|
|
206
198
|
|
|
207
|
-
return
|
|
199
|
+
return seqNo;
|
|
208
200
|
}
|
|
209
201
|
}
|