Initialize to empty state when registering telemetry tasks (#82169)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
ymao1 2020-11-02 15:34:16 -05:00 committed by GitHub
parent 069321a8aa
commit 057e9a72e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ async function scheduleTasks(logger: Logger, taskManager: TaskManagerStartContra
await taskManager.ensureScheduled({
id: TASK_ID,
taskType: TELEMETRY_TASK_TYPE,
state: { byDate: {}, suggestionsByDate: {}, saved: {}, runs: 0 },
state: {},
params: {},
});
} catch (e) {

View file

@ -53,7 +53,7 @@ async function scheduleTasks(logger: Logger, taskManager: TaskManagerStartContra
await taskManager.ensureScheduled({
id: TASK_ID,
taskType: TELEMETRY_TASK_TYPE,
state: { byDate: {}, suggestionsByDate: {}, saved: {}, runs: 0 },
state: {},
params: {},
});
} catch (e) {