1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2025-09-04 04:50:14 +02:00

Added proper documentation

This commit is contained in:
zneix 2020-08-29 05:29:39 +02:00
parent 1efc62a8c5
commit b4f42219e5
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 911916E0523B22F6
9 changed files with 326 additions and 311 deletions

View file

@ -1,11 +1,7 @@
const winston = require('winston');
const fs = require('fs');
const crypto = require('crypto');
const winston = require('winston');
// For storing in files
// options[type] = file
// options[path] - Where to store
class FileDocumentStore {

View file

@ -3,7 +3,7 @@ const mongodb = require('mongodb');
const MongoDocumentStore = function (config){
this.expire = config.expire;
this.MongoClient = new mongodb.MongoClient(config.connectionUrl, config.clientOptions);
this.MongoClient = new mongodb.MongoClient(config.connectionUri, config.clientOptions);
};
MongoDocumentStore.prototype.set = async function (key, data, callback, skipExpire){