Skip to content

Commit

Permalink
TS-866 Fix after Coderabbit review
Browse files Browse the repository at this point in the history
  • Loading branch information
birkirkristmunds committed Sep 9, 2024
1 parent a234396 commit ee01473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ export class RecyclingRequestResolver {
@Args('recyclingPartner') station: string,
@Args('mileage', { type: () => Int, nullable: true }) mileage: number,
): Promise<boolean> {
console.log('skilavottordDeRegisterVehicle -- HVER ER AÐ KALLA')
throw new Error('Not implemented')
throw new Error('Not used anymore')

return undefined //this.recyclingRequestService.deRegisterVehicle(permno, station, 0)
//this.recyclingRequestService.deRegisterVehicle(permno, station, 0)
}

@Authorize({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class VehicleService {
if (findVehicle) {
findVehicle.mileage = mileage ?? 0
findVehicle.plateCount = plateCount ?? 0
findVehicle.plateLost = plateLost ? true : false
findVehicle.plateLost = plateLost

await findVehicle.save()
return true
Expand Down

0 comments on commit ee01473

Please sign in to comment.