BugFix: fixing types
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user