@spytecgps/nova-orm 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ export const completeTask = async (novaDataSource, params, logger) => {
13
13
  .set({
14
14
  status: 'completed',
15
15
  completedBy: params.completedBy,
16
- completedAt: now,
16
+ completedAt: params.completedAt ?? now,
17
17
  completionNotes: params.completionNotes,
18
18
  completionOdometer: params.completionOdometer,
19
19
  completionActiveHours: params.completionActiveHours,
@@ -194,6 +194,7 @@ export interface UpdateTaskParams {
194
194
  export interface CompleteTaskParams {
195
195
  id: number;
196
196
  completedBy: string;
197
+ completedAt?: Date;
197
198
  completionNotes?: string;
198
199
  completionOdometer?: number;
199
200
  completionActiveHours?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",