clean up typing
This commit is contained in:
		
							parent
							
								
									500579f2a3
								
							
						
					
					
						commit
						660f9e9bc2
					
				| 
						 | 
					@ -325,8 +325,8 @@ If you are trying to update an existing alias, but forgot the name, please run t
 | 
				
			||||||
        errorOut = true;
 | 
					        errorOut = true;
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    const currentAliases = await dbClient
 | 
					    const currentAliases: QueryShape[] = await dbClient
 | 
				
			||||||
      .query('SELECT aliasName as count FROM aliases WHERE guildid = ? AND userid = ?', guildMode ? [message.guildId, 0n] : [0n, message.authorId])
 | 
					      .query('SELECT aliasName FROM aliases WHERE guildid = ? AND userid = ?', guildMode ? [message.guildId, 0n] : [0n, message.authorId])
 | 
				
			||||||
      .catch((e0) => {
 | 
					      .catch((e0) => {
 | 
				
			||||||
        utils.commonLoggers.dbError('add.ts:266', 'get count', e0);
 | 
					        utils.commonLoggers.dbError('add.ts:266', 'get count', e0);
 | 
				
			||||||
        newMsg
 | 
					        newMsg
 | 
				
			||||||
| 
						 | 
					@ -336,7 +336,7 @@ If you are trying to update an existing alias, but forgot the name, please run t
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    if (errorOut) return;
 | 
					    if (errorOut) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (currentAliases.length < guildMode ? config.limits.alias.free.guild : config.limits.alias.free.user) {
 | 
					    if (currentAliases.length < (guildMode ? config.limits.alias.free.guild : config.limits.alias.free.user)) {
 | 
				
			||||||
      await dbClient
 | 
					      await dbClient
 | 
				
			||||||
        .execute('INSERT INTO aliases(guildid,userid,aliasName,rollStr,yVarCnt,premium) values(?,?,?,?,?,?)', [
 | 
					        .execute('INSERT INTO aliases(guildid,userid,aliasName,rollStr,yVarCnt,premium) values(?,?,?,?,?,?)', [
 | 
				
			||||||
          guildMode ? message.guildId : 0n,
 | 
					          guildMode ? message.guildId : 0n,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue