@things-factory/biz-base 10.1.290 → 10.1.292
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.
|
@@ -100,11 +100,18 @@ async function issueMissingPartyIdentifiers(tx) {
|
|
|
100
100
|
const repo = tx.getRepository(counterparty_1.Counterparty);
|
|
101
101
|
const unnamed = await repo.find({ withDeleted: true, where: { partyIdentifier: (0, typeorm_1.IsNull)() } });
|
|
102
102
|
const namespaces = new Map();
|
|
103
|
+
const kept = tx.connection.driver.escape(repo.metadata.updateDateColumn.databaseName);
|
|
103
104
|
for (const one of unnamed) {
|
|
104
105
|
const domainId = one.domainId;
|
|
105
106
|
if (!namespaces.has(domainId))
|
|
106
107
|
namespaces.set(domainId, await partyNamespaceOf(tx, { id: domainId }));
|
|
107
|
-
|
|
108
|
+
/* Naming a row is no change a person made to it - its updatedAt stays when it was last changed. */
|
|
109
|
+
await repo
|
|
110
|
+
.createQueryBuilder()
|
|
111
|
+
.update()
|
|
112
|
+
.set({ partyIdentifier: issuePartyIdentifier(namespaces.get(domainId), one.id), updatedAt: () => kept })
|
|
113
|
+
.where('id = :id', { id: one.id })
|
|
114
|
+
.execute();
|
|
108
115
|
}
|
|
109
116
|
return unnamed.length;
|
|
110
117
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/biz-base",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.292",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"@operato/ops-contract": "^0.9.43",
|
|
66
66
|
"@operato/popup": "^10.0.0",
|
|
67
67
|
"@operato/styles": "^10.29.1",
|
|
68
|
-
"@things-factory/attachment-base": "^10.1.
|
|
69
|
-
"@things-factory/auth-base": "^10.1.
|
|
70
|
-
"@things-factory/fact-change": "^10.1.
|
|
68
|
+
"@things-factory/attachment-base": "^10.1.291",
|
|
69
|
+
"@things-factory/auth-base": "^10.1.291",
|
|
70
|
+
"@things-factory/fact-change": "^10.1.291"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "579131696a2ef7eccb2a79ec774a805adface625"
|
|
73
73
|
}
|