@dooer/dooer-test-env 1.0.2 → 1.0.3
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/lib/account.js +4 -2
- package/package.json +1 -1
package/lib/account.js
CHANGED
|
@@ -78,10 +78,12 @@ async function createAccount({ local, name, ownerUserId, execute = false } = {})
|
|
|
78
78
|
|
|
79
79
|
await client.query('BEGIN')
|
|
80
80
|
await client.query(
|
|
81
|
+
// Populate a placeholder address: some org endpoints serialize organization.address as a required
|
|
82
|
+
// OBJECT and return null (schema violation, seen in sumify) when all address columns are empty.
|
|
81
83
|
`INSERT INTO service_accounts.companies
|
|
82
84
|
(companies_pk, fk_countries_pk, fk_company_types_pk, company_name, short_name, organization_number,
|
|
83
|
-
api_uuid, language, "timeZone", currency, inserted_at, updated_at)
|
|
84
|
-
VALUES ($1,'SE','AB',$2,$3,$4,$5,'sv','Europe/Stockholm','SEK',now(),now())`,
|
|
85
|
+
api_uuid, language, "timeZone", currency, address, postal_code, city, inserted_at, updated_at)
|
|
86
|
+
VALUES ($1,'SE','AB',$2,$3,$4,$5,'sv','Europe/Stockholm','SEK','Testgatan 1','11111','Stockholm',now(),now())`,
|
|
85
87
|
[orgId, name, shortName, orgNumber(), uuid()]
|
|
86
88
|
)
|
|
87
89
|
await client.query(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dooer/dooer-test-env",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Run the whole Dooer backend locally (staging DB minus customers), copy/purge customers between environments, and shred — one CLI.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": "Dooer/cli-dooer-test-env",
|