Skip to content

Commit

Permalink
move store.ts to serverstate` folder
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Jan 2, 2022
1 parent 43bb1aa commit e66fcac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/course/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Application, Request, Response } from 'express'
import path from 'path'
import { WithConfig, WithSecurityStrategy, WithSignalK } from '../../app'
import _ from 'lodash'
import { Store } from '../store'
import { Store } from '../../serverstate/store'

const debug = Debug('signalk:courseApi')

Expand Down Expand Up @@ -175,6 +175,8 @@ export class CourseApi {
this.courseInfo.previousPoint.position = position.value
this.emitCourseInfo()
res.status(200).send('OK')
} else {
res.status(406).send(`Vessel position unavailable!`)
}
} catch (err) {
res.status(406).send(`Vessel position unavailable!`)
Expand Down
File renamed without changes.

1 comment on commit e66fcac

@tkurki
Copy link
Member

@tkurki tkurki commented on e66fcac Jan 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I meant the data file location, but this move makes also sense.

Please sign in to comment.