Skip to content

Commit e66fcac

Browse files
committed
move store.ts to serverstate` folder
1 parent 43bb1aa commit e66fcac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/api/course/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Application, Request, Response } from 'express'
33
import path from 'path'
44
import { WithConfig, WithSecurityStrategy, WithSignalK } from '../../app'
55
import _ from 'lodash'
6-
import { Store } from '../store'
6+
import { Store } from '../../serverstate/store'
77

88
const debug = Debug('signalk:courseApi')
99

@@ -175,6 +175,8 @@ export class CourseApi {
175175
this.courseInfo.previousPoint.position = position.value
176176
this.emitCourseInfo()
177177
res.status(200).send('OK')
178+
} else {
179+
res.status(406).send(`Vessel position unavailable!`)
178180
}
179181
} catch (err) {
180182
res.status(406).send(`Vessel position unavailable!`)
File renamed without changes.

0 commit comments

Comments
 (0)