aicp-tracker 1.2.0 → 1.2.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.
- package/package.json +1 -1
- package/src/sender.js +1 -1
package/package.json
CHANGED
package/src/sender.js
CHANGED
|
@@ -8,7 +8,7 @@ const wal = require('./wal');
|
|
|
8
8
|
* organization → useremail → date → [records]
|
|
9
9
|
*/
|
|
10
10
|
function buildPayload(cfg, records) {
|
|
11
|
-
const org = cfg.vcsUrl.replace(/^https?:\/\/[^/]+\//, ''); // extract slug
|
|
11
|
+
const org = cfg.vcsUrl.replace(/^https?:\/\/[^/]+\//, '').replace(/\/+$/, ''); // extract slug, strip trailing slash
|
|
12
12
|
const email = cfg.email;
|
|
13
13
|
const payload = {};
|
|
14
14
|
|