chore: return new model instead of modifying the existing

This commit is contained in:
kolaente 2021-12-26 11:34:36 +01:00
parent 7d43bbad4e
commit dd9dbc0103
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 2 deletions

View File

@ -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) {