syntax fix
This commit is contained in:
parent
c543a6d74b
commit
e77b878fed
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ const { getUser, getMySecret, mySEA } = require('./gunDB/Mediator')
|
|||
* @param {Common.Coordinate} data
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
export const writeCoordinate = async (coordID, data) => {
|
||||
module.exports.writeCoordinate = async (coordID, data) => {
|
||||
if (coordID !== data.id) {
|
||||
throw new Error('CoordID must be equal to data.id')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue