Update outline.
This commit is contained in:
parent
cd61b1e3af
commit
fb0bfcacf7
13
OUTLINE.md
13
OUTLINE.md
@ -1,10 +1,12 @@
|
||||
# TODO
|
||||
|
||||
[3] public servers (don't require login to view)
|
||||
- no server list
|
||||
- view as guest (disabled by default)
|
||||
- acrd.app/guilds/:name
|
||||
- https://acrd.app/channels/<unique-guild-name>/<unique-channel-name>
|
||||
> no server list
|
||||
> view as guest (disabled by default)
|
||||
> acrd.app/guilds/:name
|
||||
> https://acrd.app/channels/:uniqueGuildName/:uniqueChannelName
|
||||
[3] theme page
|
||||
> https://acrd.app/theme/:themeId
|
||||
[4] show more things no channels exist
|
||||
> show member list bar
|
||||
> inform user that there are no channels
|
||||
@ -16,5 +18,8 @@
|
||||
> TypeError: Cannot read properties of undefined (reading 'id')
|
||||
> invite may be created by a user that left the guild
|
||||
[2] themes do not work on live build
|
||||
|
||||
# VERIFY
|
||||
|
||||
[3] member status: members sometimes remain online, after going offline
|
||||
> disconnected event may not be called
|
@ -4,6 +4,7 @@ config();
|
||||
|
||||
import './modules/deps';
|
||||
import './modules/logger';
|
||||
import { User } from './data/models/user';
|
||||
|
||||
connect(process.env.MONGO_URI, {
|
||||
useUnifiedTopology: true,
|
||||
@ -12,5 +13,8 @@ connect(process.env.MONGO_URI, {
|
||||
useCreateIndex: true,
|
||||
serverSelectionTimeoutMS: 0,
|
||||
})
|
||||
.catch(error => log.error(error.message ?? 'Unable to connect to db', { uri: process.env.MONGO_URI }))
|
||||
.then(con => log.info(`Connected to database.`, { uri: process.env.MONGO_URI }));
|
||||
.catch(error => log.error(error.message ?? 'Unable to connect to db', { uri: process.env.MONGO_URI }))
|
||||
.then(async (con) => {
|
||||
log.info(`Connected to database.`, { uri: process.env.MONGO_URI });
|
||||
await User.updateMany({ $set: { status: 'OFFLINE' } })
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user