forked from OpenWF/SpaceNinjaServer
		
	Reviewed-on: OpenWF/SpaceNinjaServer#2694 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
		
			
				
	
	
		
			10 lines
		
	
	
		
			452 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			452 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { Inventory } from "../../models/inventoryModels/inventoryModel.ts";
 | 
						|
import { getAccountIdForRequest } from "../../services/loginService.ts";
 | 
						|
import type { RequestHandler } from "express";
 | 
						|
 | 
						|
export const playedParkourTutorialController: RequestHandler = async (req, res) => {
 | 
						|
    const accountId = await getAccountIdForRequest(req);
 | 
						|
    await Inventory.updateOne({ accountOwnerId: accountId }, { PlayedParkourTutorial: true });
 | 
						|
    res.end();
 | 
						|
};
 |