@outlawdesigns/armorysdk 1.0.3 → 1.0.4

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,13 +13,13 @@ class TargetImage extends Record{
13
13
  constructor(id){
14
14
  super(TargetImage.database,TargetImage.table,TargetImage.primaryKey,id);
15
15
  this.publicKeys = [
16
- 'Id','ShootId','BinaryData', 'User'
16
+ 'Id','Shoot','BinaryData', 'User'
17
17
  ];
18
18
  }
19
19
  static async getByShootId(shootId){
20
20
  let records = [];
21
21
  let model = new TargetImage();
22
- let ids = await model.db.table(model.table).select(model.primaryKey).where('ShootId = ?', [shootId]).execute();
22
+ let ids = await model.db.table(model.table).select(model.primaryKey).where('Shoot = ?', [shootId]).execute();
23
23
  for(let id in ids){
24
24
  let obj = await new TargetImage(ids[id][model.primaryKey]).init();
25
25
  records.push(obj.getPublicProperties());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outlawdesigns/armorysdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"