Browse Source

fix

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
d5c283b40e
  1. 2
      api/controllers/contacts.ts
  2. 2
      dist/api/controllers/contacts.js
  3. 2
      dist/api/controllers/contacts.js.map

2
api/controllers/contacts.ts

@ -119,7 +119,7 @@ const createContact = async (req, res) => {
return success(res, jsonUtils.contactToJson(existing))
}
if(attrs['public_key'].length>66) attrs['public_key'] = attrs['public_key'].subtring(0,66)
if(attrs['public_key'].length>66) attrs['public_key'] = attrs['public_key'].substring(0,66)
const createdContact = await models.Contact.create(attrs)
const contact = await createdContact.update(jsonUtils.jsonToContact(attrs))

2
dist/api/controllers/contacts.js

@ -110,7 +110,7 @@ const createContact = (req, res) => __awaiter(void 0, void 0, void 0, function*
return res_1.success(res, jsonUtils.contactToJson(existing));
}
if (attrs['public_key'].length > 66)
attrs['public_key'] = attrs['public_key'].subtring(0, 66);
attrs['public_key'] = attrs['public_key'].substring(0, 66);
const createdContact = yield models_1.models.Contact.create(attrs);
const contact = yield createdContact.update(jsonUtils.jsonToContact(attrs));
res_1.success(res, jsonUtils.contactToJson(contact));

2
dist/api/controllers/contacts.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save