Skip to content

Commit

Permalink
Fix issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
odbz committed Feb 9, 2024
1 parent a82075f commit ffe44f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions datanode-ui/src/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export const colsTableSubmissions = (t: any): ColumnInterface<any>[] => [
maxWidth: 150,
minWidth: 150,
isCropped: true,
Cell: (props): any => {
return props.value.includes('deleted_source_at') ?props.value.substring( 0,props.value.indexOf('_deleted_source_at') )?.concat(' (Removed)'): props.value;
}
},
{
Header: t("tables.cols.submitted"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

@Entity
@Table(name = "datasource")
@SQLDelete(sql = "UPDATE datasource SET deleted_at = current_timestamp WHERE id = ?")
@SQLDelete(sql = "UPDATE datasource SET deleted_at = current_timestamp, name = name ||'_deleted_source_at_'||to_char(current_timestamp, 'YYYYMMDD\"T\"HH24MISS') WHERE id = ?")
@ValidCredentials
public class DataSource {

Expand Down

0 comments on commit ffe44f1

Please sign in to comment.