1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

fix: Fix saving milliseconds for timestamps

This commit is contained in:
Maksim Eltyshev 2023-06-12 23:54:57 +02:00
parent a6cfad4d35
commit 8578883fac
5 changed files with 8 additions and 12 deletions

View file

@ -1,16 +1,12 @@
const bcrypt = require('bcrypt');
exports.seed = (knex) => {
const date = new Date().toUTCString();
return knex('user_account').insert({
exports.seed = (knex) =>
knex('user_account').insert({
email: 'demo@demo.demo',
password: bcrypt.hashSync('demo', 10),
isAdmin: true,
name: 'Demo Demo',
username: 'demo',
subscribeToOwnCards: false,
createdAt: date,
updatedAt: date,
createdAt: new Date().toISOString(),
});
};