mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 21:03:03 +00:00
fixes issue with urn property being encoded inPOST request payload to save retention
This commit is contained in:
parent
46f52e14ee
commit
dd374df0a4
@ -1,4 +1,5 @@
|
||||
import { IDatasetRetention } from 'wherehows-web/typings/api/datasets/retention';
|
||||
import { decodeUrn } from 'wherehows-web/utils/validators/urn';
|
||||
|
||||
/**
|
||||
* 'News' a IDatasetRetention instance with the provided dataset urn
|
||||
@ -6,7 +7,7 @@ import { IDatasetRetention } from 'wherehows-web/typings/api/datasets/retention'
|
||||
* @returns {IDatasetRetention}
|
||||
*/
|
||||
const retentionObjectFactory = (urn: string): IDatasetRetention => ({
|
||||
datasetUrn: urn,
|
||||
datasetUrn: decodeUrn(urn),
|
||||
purgeNote: '',
|
||||
purgeType: ''
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user