Make sure CConfirmation.{id, creator} are always strings

This commit is contained in:
Alex Corn 2019-02-06 19:36:01 -05:00
parent 4e90811008
commit d35e3c107c
2 changed files with 6 additions and 2 deletions

4
.idea/encodings.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>

View File

@ -5,9 +5,9 @@ module.exports = CConfirmation;
function CConfirmation(community, data) {
Object.defineProperty(this, "_community", {"value": community});
this.id = data.id;
this.id = data.id.toString();
this.type = data.type;
this.creator = data.creator;
this.creator = data.creator.toString();
this.key = data.key;
this.title = data.title;
this.receiving = data.receiving;