stellarium-ts 0.4.0 → 0.6.0

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.
@@ -6,7 +6,7 @@ export class PeerRepository {
6
6
  }
7
7
  async create(peer) {
8
8
  // Check if the peer already exists
9
- const existingPeer = await this.db.get('SELECT * FROM peer WHERE base_url = ?', [peer.baseUrl, peer.name]);
9
+ const existingPeer = await this.db.get('SELECT * FROM peer WHERE base_url = ?', [peer.baseUrl]);
10
10
  if (existingPeer) {
11
11
  return;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C,UAAU,YAAY;IAClB,OAAO,EAAE,OAAO,CAAC;CACpB;AA+BD;;;;GAIG;AACH,QAAA,MAAM,MAAM,EAAE,kBAAkB,CAAC,YAAY,CAmI5C,CAAC;eAGa,MAAM"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C,UAAU,YAAY;IAClB,OAAO,EAAE,OAAO,CAAC;CACpB;AA+BD;;;;GAIG;AACH,QAAA,MAAM,MAAM,EAAE,kBAAkB,CAAC,YAAY,CAoI5C,CAAC;eAGa,MAAM"}
package/dist/routes.js CHANGED
@@ -80,6 +80,7 @@ const routes = async (fastify, options) => {
80
80
  reply.status(200).send({ returnValue: result.returnValue ?? null });
81
81
  }
82
82
  catch (error) {
83
+ fastify.log.error(error);
83
84
  reply.status(500).send({ error: 'Internal server error' });
84
85
  }
85
86
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellarium-ts",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "A Stellarium Node in TypeScript.",
5
5
  "homepage": "https://github.com/qualletio/stellarium-ts#readme",
6
6
  "bugs": {