Skip to content

Commit d02272b

Browse files
committed
Update info on chronos.ServerWrapper functionality
1 parent 0e86ed3 commit d02272b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

chronos_npm_package/chronos.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,14 @@ chronos.track = () => {
101101
}
102102
return null;
103103
};
104-
104+
/** ServerWrapper
105+
* If the provided database is MongoDB, connection will be made to the Mongodb Atlas
106+
* If the provided database is PostgreSQL, connection will be made to PostgreSQL client
107+
* Passes userConfig
108+
* @param {*} server
109+
* @param {*} proto
110+
* @param {*} methods
111+
*/
105112
chronos.ServerWrapper = (server, proto, methods) => {
106113
const { database } = userConfig;
107114
if (database.type === 'MongoDB') {

0 commit comments

Comments
 (0)