adding missing .getPojo() to becca entities

This commit is contained in:
zadam
2021-05-08 22:13:08 +02:00
parent 9441cb177f
commit 84246fd197
4 changed files with 44 additions and 6 deletions

View File

@@ -18,6 +18,14 @@ class ApiToken extends AbstractEntity {
this.token = row.token;
this.utcDateCreated = row.utcDateCreated || dateUtils.utcNowDateTime();
}
getPojo() {
return {
apiTokenId: this.apiTokenId,
token: this.token,
utcDateCreated: this.utcDateCreated
}
}
}
module.exports = ApiToken;