You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/gitpod-db/src/typeorm/transformer.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ export namespace Transformer {
28
28
to(value: any): any{
29
29
// DROP all input values as they are set by the DB 'ON UPDATE'/ as default value.
30
30
// We're relying on the system variable explicit-defaults-for-timestamp here (link: https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp):
31
-
// `undefined` get's converted to NULL, which on the DB is turned into the configured default value for the column.
31
+
// `undefined` gets converted to NULL, which on the DB is turned into the configured default value for the column.
32
32
// In our case, that's 100% CURRENT_TIMESTAMP.
33
33
// This was done initially so we don't have to make fields like `creationTime` optional, or have to use two types for the same table.
34
34
returnundefined;
@@ -76,4 +76,4 @@ export class CompositeValueTransformer implements ValueTransformer {
0 commit comments