Skip to content

Instantly share code, notes, and snippets.

@iamfunsho iamfunsho/block4.js Secret
Created Oct 24, 2017

Embed
What would you like to do?
"use strict";
import express from "express";
import { client } from "../lib/redis";
import * as helper from "../lib/functions";
const router = express.Router();
let fetchMessages = () => {
return helper.fetchMessages().then(
res => {
return res;
},
err => {
console.log(err);
}
);
};
let fetchUsers = () => {
return helper.fetchActiveUsers().then(
res => {
return res;
},
err => {
console.log(err);
}
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.