2025-08-25 13:37:14 -07:00
|
|
|
import { getInventory } from "../../services/inventoryService.ts";
|
|
|
|
|
import { getAccountIdForRequest } from "../../services/loginService.ts";
|
2025-08-24 21:41:20 -07:00
|
|
|
import type { RequestHandler } from "express";
|
2025-02-25 17:31:52 -08:00
|
|
|
|
|
|
|
|
export const abandonLibraryDailyTaskController: RequestHandler = async (req, res) => {
|
|
|
|
|
const accountId = await getAccountIdForRequest(req);
|
|
|
|
|
const inventory = await getInventory(accountId);
|
|
|
|
|
inventory.LibraryActiveDailyTaskInfo = undefined;
|
|
|
|
|
await inventory.save();
|
|
|
|
|
res.status(200).end();
|
|
|
|
|
};
|