Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 4c06873

Browse files
committed
add scalar id on 1-1
1 parent 5e49a11 commit 4c06873

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export class JSONAPISerializer {
550550

551551
if (value?.id) {
552552
output.id = value.id.toString();
553-
} else if (isString(value) || isNumber(value)) {
553+
} else if (isString(value) || isNumber(value)) {
554554
output.id = value.toString();
555555
}
556556
serializedRelationships[kebabCase(property)] =

0 commit comments

Comments
 (0)