Fix
This commit is contained in:
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\DeckFlow\AppInfo;
|
||||
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\BackgroundJob\IJobList;
|
||||
use OCA\DeckFlow\BackgroundJobs\CheckOverdueCards;
|
||||
|
||||
class Application extends App {
|
||||
public function __construct(array $urlParams = []) {
|
||||
parent::__construct('deckflow', $urlParams);
|
||||
}
|
||||
|
||||
public function register() {
|
||||
$container = $this->getContainer();
|
||||
$jobList = $container->query(IJobList::class);
|
||||
$jobList->add(CheckOverdueCards::class);
|
||||
}
|
||||
}
|
9
appinfo/cron.php
Normal file
9
appinfo/cron.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
// lib/cron.php
|
||||
|
||||
/** @var \OCP\IContainer $container */
|
||||
$container = require __DIR__ . '/../lib/container.php';
|
||||
$job = $container->query('OCA\Deckflow\Cron\MoveOverdueCardsJob');
|
||||
|
||||
// Führe den Cronjob aus
|
||||
$job->execute();
|
@ -1,9 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<info>
|
||||
<id>deckflow</id>
|
||||
<name>Deck Flow</name>
|
||||
<description>Automatisches Verschieben von überfälligen Karten in Nextcloud Deck</description>
|
||||
<version>1.0.0</version>
|
||||
<namespace>OCA\DeckFlow</namespace>
|
||||
<category>automation</category>
|
||||
</info>
|
||||
<ocl:information xmlns:ocl="http://www.nextcloud.org/ns">
|
||||
<id>deckflow</id>
|
||||
<name>Deckflow</name>
|
||||
<summary>Automatisiere Deck-Karten mit Cronjobs und Workflows</summary>
|
||||
<description>Diese App automatisiert die Bewegung von Karten basierend auf Workflows und Überprüfungen von überfälligen Karten.</description>
|
||||
<version>0.1.0</version>
|
||||
<namespace>deckflow</namespace>
|
||||
<dependencies>
|
||||
<nextcloud>21</nextcloud>
|
||||
<app>workflow</app>
|
||||
<app>deck</app>
|
||||
</dependencies>
|
||||
</ocl:information>
|
||||
|
Reference in New Issue
Block a user