chore: return new model instead of modifying the existing

This commit is contained in:
kolaente 2021-12-26 11:34:36 +01:00 committed by Dominik Pschenitschni
parent d71a219012
commit 1a8184a01b
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
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) {