fix: eslint warning

This commit is contained in:
Sainan 2024-12-23 05:53:58 +01:00
parent 68335aa91b
commit 774d5a49c4

View File

@ -9,7 +9,7 @@ export const toInventoryResponse = (inventoryDatabase: { accountOwnerId: Types.O
return inventoryResponse as unknown as IInventoryResponse;
};
export const toOid = (objectId: Types.ObjectId) => {
export const toOid = (objectId: Types.ObjectId): IOid => {
return { $oid: objectId.toString() } satisfies IOid;
};