@tabletennisshop/common 1.0.25 → 1.0.26

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.
@@ -2,11 +2,11 @@ import { Document, Model } from "mongoose";
2
2
  import { IAddress } from "./address.schema";
3
3
  export interface VendorAttrs {
4
4
  name: string;
5
- address: IAddress[];
5
+ addresses: IAddress[];
6
6
  }
7
7
  interface VendorDoc extends Document {
8
8
  name: string;
9
- address: IAddress[];
9
+ addresses: IAddress[];
10
10
  }
11
11
  interface VendorModel extends Model<VendorDoc> {
12
12
  build(attr: VendorAttrs): VendorDoc;
@@ -5,7 +5,7 @@ const mongoose_1 = require("mongoose");
5
5
  const address_schema_1 = require("./address.schema");
6
6
  const VendorSchema = new mongoose_1.Schema({
7
7
  name: { type: String, required: true },
8
- address: [
8
+ addresses: [
9
9
  { type: address_schema_1.AddressSchema, required: true }
10
10
  ]
11
11
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tabletennisshop/common",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",