mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: remove path alias.
feat: remove Webpack and depend on nodemon. feat: refactoring expenses. feat: optimize system users with caching. feat: architecture tenant optimize.
This commit is contained in:
8
server/src/before.ts
Normal file
8
server/src/before.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import path from 'path';
|
||||
import moment from 'moment';
|
||||
|
||||
global.__root = path.resolve(__dirname);
|
||||
|
||||
moment.prototype.toMySqlDateTime = function () {
|
||||
return this.format('YYYY-MM-DD HH:mm:ss');
|
||||
};
|
||||
Reference in New Issue
Block a user