fix: trasaction creation
This commit is contained in:
@@ -62,7 +62,7 @@ class TransactionService {
|
||||
transaction: ITransaction
|
||||
): Promise<PouchDB.Core.Response> {
|
||||
try {
|
||||
transaction._id = couchService.newId('tra', accountId)
|
||||
transaction._id = couchService.newId(`tra-${accountId}`)
|
||||
transaction.doctype = 'transaction'
|
||||
transaction = await this.encrypt(transaction)
|
||||
return await couchService.save(transaction)
|
||||
|
||||
Reference in New Issue
Block a user