Update Queue const to prevent DEPRECATED collisions

This commit is contained in:
Mingwei Samuel 2020-03-31 11:58:15 -07:00
parent 603de367c0
commit 1745ac0541

View file

@ -28,7 +28,7 @@ pub enum Queue {
for (let { queueId, map, description, notes } of colQueues) { for (let { queueId, map, description, notes } of colQueues) {
const doc = (description ? description + ' games on ' : '') + map; const doc = (description ? description + ' games on ' : '') + map;
const deprecated = (notes || '').toUpperCase().indexOf('DEPRECATED') >= 0; const deprecated = (notes || '').toUpperCase().indexOf('DEPRECATED') >= 0;
const name = groupName + ((colQueues.length > 1 && deprecated) ? '_DEPRECATED' : ''); const name = groupName + ((colQueues.length > 1 && deprecated) ? `_DEPRECATED_${queueId}` : '');
}} }}
/// {{= doc }}. /// {{= doc }}.
{{? notes }} {{? notes }}