chore: return new model instead of modifying the existing
This commit is contained in:
parent
cd245e467c
commit
d865af58a8
1 changed files with 4 additions and 2 deletions
|
@ -12,8 +12,10 @@ export default class CaldavTokenService extends AbstractService {
|
|||
}
|
||||
|
||||
processModel(model) {
|
||||
model.created = formatISO(new Date(model.created))
|
||||
return model
|
||||
return {
|
||||
...model,
|
||||
created: formatISO(new Date(model.created)),
|
||||
}
|
||||
}
|
||||
|
||||
modelFactory(data) {
|
||||
|
|
Loading…
Reference in a new issue