mirror of
https://github.com/zoriya/Aeris.git
synced 2026-06-05 19:46:02 +00:00
Adding an util action that triggers on curls
This commit is contained in:
@@ -52,7 +52,7 @@ export class Manager {
|
||||
}
|
||||
|
||||
handlePipelineError(pipeline: Pipeline, error: Error): Observable<never> {
|
||||
console.error(`Unhandled exception while trying to listen for the pipeline ${pipeline.name} (type: ${pipeline.type.toString()}).`, error)
|
||||
console.error(`Unhandled exception while trying to listen for the pipeline ${pipeline.name} (type: ${pipeline.type?.toString()}).`, error)
|
||||
fetch(`${process.env["WORKER_API_URL"]}/error/${pipeline.id}?WORKER_API_KEY=${process.env["WORKER_API_KEY"]}`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({error}),
|
||||
|
||||
@@ -111,6 +111,7 @@ export class PipelineEnv {
|
||||
|
||||
export const pipelineFromApi = (data: any): Pipeline => {
|
||||
const type: string = data.res.action.pType;
|
||||
console.log("type::", type);
|
||||
return {
|
||||
id: data.res.action.id,
|
||||
name: data.res.action.name,
|
||||
|
||||
@@ -4,3 +4,4 @@ export { Github } from "./github"
|
||||
export { Spotify } from "./spotify"
|
||||
export { Discord } from "./discord"
|
||||
export { Anilist } from "./anilist"
|
||||
export { UtilsService } from "./utils"
|
||||
|
||||
Reference in New Issue
Block a user