1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

fix: strategy default sort order

This commit is contained in:
Tymoteusz Czech 2023-05-24 16:22:58 +02:00
parent 1ec4fd06d2
commit 9b5a099ef6
No known key found for this signature in database
GPG Key ID: 133555230D88D75F

View File

@ -37,6 +37,7 @@ const COLUMNS = [
'created_at',
'disabled',
];
const DEFAULT_ORDER = 9999;
/*
const mapperToColumnNames = {
createdAt: 'created_at',
@ -100,7 +101,7 @@ function mapInput(input: IFeatureStrategy): IFeatureStrategiesTable {
parameters: input.parameters,
constraints: JSON.stringify(input.constraints || []),
created_at: input.createdAt,
sort_order: input.sortOrder,
sort_order: input.sortOrder || DEFAULT_ORDER,
disabled: input.disabled,
};
}