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

  • deno
    One script reply has been approved by the moderators
    Ap­pro­ved
    import * as wmill from "https://deno.land/x/[email protected]/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 373 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 934 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 1006 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 1137 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 1172 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 1365 days ago