mirror of
https://github.com/Nezumi-2711/javascript-training.git
synced 2026-09-22 13:38:43 +00:00
18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
import CommonService from './commonService';
|
|
|
|
export default class TransactionService extends CommonService {
|
|
constructor() {
|
|
super();
|
|
|
|
this.defaultPath = 'transactions/';
|
|
}
|
|
|
|
/**
|
|
* Save transaction into database
|
|
* @param {Object} transaction The wallet object need to be saved into database
|
|
*/
|
|
async saveTransaction(transaction) {
|
|
await this.save(transaction);
|
|
}
|
|
}
|