forked from OpenWF/SpaceNinjaServer
10 lines
441 B
TypeScript
10 lines
441 B
TypeScript
|
import { Inventory } from "@/src/models/inventoryModels/inventoryModel";
|
||
|
import { getAccountIdForRequest } from "@/src/services/loginService";
|
||
|
import { RequestHandler } from "express";
|
||
|
|
||
|
export const playedParkourTutorialController: RequestHandler = async (req, res) => {
|
||
|
const accountId = await getAccountIdForRequest(req);
|
||
|
await Inventory.updateOne({ accountOwnerId: accountId }, { PlayedParkourTutorial: true });
|
||
|
res.end();
|
||
|
};
|