fix: acquiring ships #619

Merged
Sainan merged 5 commits from ships into main 2024-12-23 00:15:41 -08:00
Showing only changes of commit 39ac1d8276 - Show all commits

View File

@ -23,8 +23,8 @@ export const getShip = async (shipId: Types.ObjectId, fieldSelection: string = "
const ship = await Ship.findOne({ _id: shipId }, fieldSelection);
if (!ship) {
logger.error(`error finding a ship for account ${shipId}`);
throw new Error(`error finding a ship for account ${shipId}`);
logger.error(`error finding a ship with id ${shipId}`);
throw new Error(`error finding a ship with id ${shipId}`);
}
return ship;