@nina-protocol/nina-db 0.0.86 → 0.0.87
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.
- package/dist/models/Tag.js +1 -1
- package/package.json +1 -1
- package/src/models/Tag.js +1 -1
package/dist/models/Tag.js
CHANGED
|
@@ -15,7 +15,7 @@ export default class Tag extends Model {
|
|
|
15
15
|
const sanitizedValue = this.sanitizeValue(value);
|
|
16
16
|
let tag = await Tag.query().where('value', sanitizedValue).first();
|
|
17
17
|
if (!tag) {
|
|
18
|
-
tag = await Tag.query().insert({ value: sanitizedValue })
|
|
18
|
+
tag = await Tag.query().insert({ value: sanitizedValue });
|
|
19
19
|
}
|
|
20
20
|
return tag;
|
|
21
21
|
};
|
package/package.json
CHANGED
package/src/models/Tag.js
CHANGED
|
@@ -18,7 +18,7 @@ export default class Tag extends Model {
|
|
|
18
18
|
const sanitizedValue = this.sanitizeValue(value);
|
|
19
19
|
let tag = await Tag.query().where('value', sanitizedValue).first();
|
|
20
20
|
if (!tag) {
|
|
21
|
-
tag = await Tag.query().insert({ value: sanitizedValue })
|
|
21
|
+
tag = await Tag.query().insert({ value: sanitizedValue });
|
|
22
22
|
}
|
|
23
23
|
return tag;
|
|
24
24
|
}
|