Edits history of script submission #114 for ' Turn on/off a schedule (windmill)'

  • deno
    import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
    
    export async function main(schedule_path: string, enabled: boolean) {
      const conf = wmill.createConf();
      const schedule_api = new wmill.ScheduleApi(conf);
      return await schedule_api.setScheduleEnabled(
        conf.workspace_id,
        schedule_path,
        {
          enabled,
        }
      );
    }
    

    Submitted by hugo697 461 days ago

  • deno
    import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
    
    export async function main(schedule_path: string, enabled: boolean) {
      const conf = wmill.createConf();
      const schedule_api = new wmill.ScheduleApi(conf);
      return await schedule_api.setScheduleEnabled(
        conf.workspace_id,
        schedule_path,
        {
          enabled,
        }
      );
    }
    

    Submitted by hugo697 1022 days ago

  • deno
    import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
    
    export async function main(schedule_path: string, enabled: boolean) {
      const conf = wmill.createConf();
      const schedule_api = new wmill.ScheduleApi(conf);
      return await schedule_api.setScheduleEnabled(
        conf.workspace_id,
        schedule_path,
        {
          enabled,
        },
      );
    }
    

    Submitted by admin 1094 days ago

  • deno
    import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
    
    export async function main(
      schedule_path: string,
      enabled: boolean,
    ) {
      let conf = wmill.createConf();
      let schedule_api = new wmill.ScheduleApi(conf);
      return await schedule_api.setScheduleEnabled(
        conf.workspace_id,
        schedule_path,
        {
          enabled,
        },
      );
    }
    

    Submitted by adam186 1225 days ago

  • deno
    import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts";
    
    export async function main(
      schedule_path: string,
      enabled: boolean,
    ) {
      let conf = wmill.createConf();
      let schedule_api = new wmill.ScheduleApi(conf);
      return await schedule_api.setScheduleEnabled(
        conf.workspace_id,
        schedule_path,
        {
          enabled,
        },
      );
    }
    

    Submitted by adam186 1260 days ago

  • deno
    import * as wmill from "https://deno.land/x/windmill@v1.31.0/mod.ts";
    
    export async function main(
      schedule_path: string,
      enabled: boolean,
    ) {
      let conf = wmill.createConf();
      let schedule_api = new wmill.ScheduleApi(conf);
      return await schedule_api.setScheduleEnabled(
        conf.workspace_id,
        schedule_path,
        {
          enabled,
        },
      );
    }
    

    Submitted by admin 1453 days ago