d2cb23c3fa
ref PROD-233 - Stored whether Docker is used in the config files - When running `yarn setup`, any existing Docker container will be reset. Run with `-y` to skip the confirmation step. - `yarn setup` will always init the database and generate fake data - Increased amount of default generated data to 100,000 members + 500 posts. - Made lots of performance improvements in the data generator so we can generate the default data in ±170s
8 lines
245 B
JavaScript
8 lines
245 B
JavaScript
module.exports = function dateToDatabaseString(date) {
|
|
if (typeof date === 'string') {
|
|
// SQLite fix when reusing other dates from the db
|
|
return date;
|
|
}
|
|
return date.toISOString().replace('Z','').replace('T', ' ');
|
|
};
|