@fleetbridge/ui 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetbridge/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "FleetBridge customer UI (search, results, booking, manage booking) for WordPress and custom sites.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/server.js CHANGED
@@ -921,7 +921,9 @@ var Tenant = class {
921
921
  const row = {
922
922
  id,
923
923
  token,
924
- apiKey: truncate(quote.apiKey),
924
+ // The column may not be empty (null). A site that signs in with its own
925
+ // secret has no API key, so it is saved as an empty text instead.
926
+ apiKey: truncate(quote.apiKey) ?? "",
925
927
  customerId: quote.customerId ?? null,
926
928
  supplierId: truncate(quote.supplierId),
927
929
  supplierIdentifier: truncate(quote.supplierIdentifier),