UNPKG

@riturajgc/upload-manager-service

Version:

Upload manager service for bitnudge

19 lines (15 loc) 581 B
class Adapter{ constructor({ type }){ this.type = type; } async fetch({ query, projection, skip, limit }){ return await this.type.fetch({ query, projection, skip, limit }) } async save({ userId, filePath, fileName, device, isThumbnailRequired ,thumbnailSize, creationFrom, thresholds }){ return await this.type.save({ userId, filePath, fileName, device, isThumbnailRequired ,thumbnailSize, creationFrom, thresholds }) } async statusChange({ fileId, status }) { return await this.type.statusChange({fileId, status}); } } module.exports = Adapter;