Skip to content

Commit 4de39d6

Browse files
committed
Regression fixed: Force the ID to be a String
1 parent 2d33c4b commit 4de39d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/serializer-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ module.exports = function (collectionName, record, payload, opts) {
274274

275275
// Top-level data.
276276
var data = { type: getType(collectionName, record) };
277-
if (record[getId()]) { data.id = record[getId()]; }
277+
if (record[getId()]) { data.id = String(record[getId()]); }
278278

279279
// Data links.
280280
if (opts.dataLinks) {

0 commit comments

Comments
 (0)