feat: add uuid to account ids
This commit is contained in:
@@ -26,7 +26,7 @@ class AccountService {
|
||||
public async add(account: IAccount): Promise<PouchDB.Core.Response> {
|
||||
try {
|
||||
account.slug = slug(account.name)
|
||||
const id = couchService.newId('acc')
|
||||
const id = couchService.newId('acc', true)
|
||||
account._id = id
|
||||
account.doctype = 'account'
|
||||
const response = await couchService.save(account)
|
||||
|
||||
Reference in New Issue
Block a user