1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix(store): DB should not override createdAt if set.

This commit is contained in:
Ivar Conradi Østhus 2018-02-07 21:58:53 +01:00
parent ebef071ab5
commit 4ed3abea22

View File

@ -96,6 +96,7 @@ class FeatureToggleStore {
enabled: data.enabled ? 1 : 0, enabled: data.enabled ? 1 : 0,
archived: data.archived ? 1 : 0, archived: data.archived ? 1 : 0,
strategies: JSON.stringify(data.strategies), strategies: JSON.stringify(data.strategies),
created_at: data.createdAt, // eslint-disable-line
}; };
} }