mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-29 00:55:51 +08:00
fix (psql): psql storage issues
This commit is contained in:
@ -115,11 +115,11 @@ func createFormElement(val any, column Column) FormElement {
|
||||
f := FormElement{
|
||||
Type: "text",
|
||||
}
|
||||
switch val.(type) {
|
||||
case bool:
|
||||
f.Type = "boolean"
|
||||
case time.Time:
|
||||
switch column.Type {
|
||||
case "timestamptz":
|
||||
f.Type = "datetime"
|
||||
case "bool":
|
||||
f.Type = "boolean"
|
||||
}
|
||||
f.Value = convertFromDB(val)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user