Add log statement for completion
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { Task } from "../model";
|
||||
import { Config } from "../types/config";
|
||||
import express from "express";
|
||||
import { CompleteTaskDTO } from "../types/dto";
|
||||
@@ -12,6 +11,7 @@ export async function startServer(config: Config) {
|
||||
const { profile, task } = await req.body as CompleteTaskDTO;
|
||||
|
||||
complete(config, profile, task);
|
||||
console.log(`Completed task [${task.fullLabel}]`);
|
||||
|
||||
res.json({ status: "ok" });
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user