BugFix: fixing types

This commit is contained in:
2025-01-13 16:32:38 +01:00
parent a65393dd11
commit 87d6928a97
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu
// fetch all locations for the given year // fetch all locations for the given year
const locations = await dbClient.collection<BillingLocation>("lokacije") const locations = await dbClient.collection<BillingLocation>("lokacije")
.aggregate([ .aggregate<BillingLocation>([
{ {
$match: { $match: {
userId, userId,

View File

@@ -46,7 +46,7 @@ export interface Bill {
* true if there an attachment * true if there an attachment
* @description this field enables us to send this info to the client without sending large attachment - it's an optimization * @description this field enables us to send this info to the client without sending large attachment - it's an optimization
*/ */
hasAttachment: boolean; hasAttachment?: boolean;
/** (optional) notes */ /** (optional) notes */
notes?: string|null; notes?: string|null;
/** (optional) image data containing PDF471 bar code */ /** (optional) image data containing PDF471 bar code */