zrhoffman commented on code in PR #7459:
URL: https://github.com/apache/trafficcontrol/pull/7459#discussion_r1212349145


##########
experimental/traffic-portal/src/app/api/testing/cdn.service.ts:
##########
@@ -175,4 +175,21 @@ export class CDNService {
                this.cdns[idx] = cdn;
                return cdn;
        }
+
+       /**
+        * Queues or dequeues updates on a CDN's servers.
+        *
+        * @param cdn The CDN to queue or dequeue updates on.
+        * @param action The action to perform on the CDN, either "queue" or 
"dequeue".
+        */
+       public async queueCDNUpdates(cdn: ResponseCDN | number, action: "queue" 
| "dequeue"): Promise<CDNQueueResponse> {
+               const cdnId = typeof cdn === "number"
+                       ? cdn
+                       : cdn.id;
+
+               return {
+                       action,
+                       cdnId,
+               };
+       }

Review Comment:
   Ehh, #7497 added `queueCDNUpdates()` and `dequeueCDNUpdates()` to 
`CDNService`, so it might as well just switch to that. Removed 
`queueCDNUpdates` in c625c7ef4f.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to