mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
adding missing .getPojo() to becca entities
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user