Error en el Where de mi consulta SQL Sequelize

A

Andred Garcia Martin

Hola amigos tengo un error en el where y no se como solucionarlo, tengo el siguiente codigo.

Code:
  const potentialValidate: any = await RulesProductModel.findAll({
            attributes: ['AllowPermanence'],
            where: {
                rpoMin: { [Op.gte]: 56 },
                rpoMax: { [Op.lte]: 58 },
                [Op.or]: [
                    { districtId: { [Op.eq]: 366 } },
                    { districtId: { [Op.is]: null } },
                ],
            },
        });

ye me da el siguiente error en el where:

Code:
Type '{ rpoMin: { [OpTypes.gte]: number; }; rpoMax: { [OpTypes.lte]: number; }; [OpTypes.or]: ({ districtId: { [OpTypes.eq]: number; }; } | { districtId: { [OpTypes.is]: null; }; })[]; }' is not assignable to type 'WhereOptions<RulesProduct> | undefined'.
  Types of property '[Op.or]' are incompatible.
    Type '({ districtId: { [OpTypes.eq]: number; }; } | { districtId: { [OpTypes.is]: null; }; })[]' is not assignable to type 'AllowArray<AllowNotOrAndWithImplicitAndArrayRecursive<Fn | Literal | Where | Json | WhereAttributeHash<RulesProduct>>> | undefined'.
      Type '{ districtId: { [OpTypes.is]: null; }; }' is not assignable to type 'Fn | Literal | Where | Json | WhereAttributeHash<RulesProduct> | { [OpTypes.or]: AllowArray<AllowNotOrAndWithImplicitAndArrayRecursive<Fn | Literal | Where | Json | WhereAttributeHash<...>>>; } | { ...; } | { ...; }'.
        Types of property 'districtId' are incompatible.
          Type '{ [OpTypes.is]: null; }' is not assignable to type 'WhereAttributeHashValue<number | undefined>'.
            Types of property '[Op.is]' are incompatible.
              Type 'null' is not assignable to type 'Literal | undefined'.

Ya he probado muchas cosas incluso Op.and y no logro solucionar
 

Unreplied Threads

как указать независимый путь к папке с изображениями

Есть флешка на которой есть папка с изображениями и батник который их открывает, нужно чтобы путь был независимый до папки с изображениями, ибо приходится постоянно менять. Заранее спасибо.

Code:
for %%v in ("H:\folder\Test\*.jpg") do start "" "%%~v"

Python requests при post запросе встречается капча

Стоит задача купить определённый товар на Binance NFT (https://www.binance.com/en/nft/blindBox/market?theme=126206614880739328). Я использую python requests для отправки post запроса. Если я нажимую на кнопку покупки, то в network отправляется post запрос на recaptcha.net вот он

Как это можно обойти или пройти, если она даже не видна мне?

Как преобразовать коды ISO 3166-1 в название стран?

Например, хочу преобразовать этот массив:

Code:
countries=['CA', 'FR', ...]

в такой:

Code:
countries=['Канада', 'Франция', ...]

Breadboarding a Phaser and not getting an output?

  • Thxforhelping
  • Physics
  • Replies: 0
After following along with a hobbyist's video, I breadboarded a phaser. Unfortunately it seems my circuit is not achieving anything close to what the hobbyist achieved with his.

I believe the issue is related to my method of achieving an audio in signal as well potential problems with my audio out. For my audio out I have a cheap, unbranded speaker that is only powered via the input signal (3.5 mm audio jack). For my audio input, I was attempting to use a 3.5 mm audio jack from my cellphone that branches into three wires (brown and red for left and right stereo channels, black is ground).

The video I was following comes from Barbarach. He has a blogpost corresponding to the video: https://barbarach.com/breadboard-a-simple-phaser/

For those who want to see the video, here is the link:

From what I understand, a 3.5 mm audio jack is only really putting out a couple of milliwatts. When I analyze the signal directly with an oscilliscope, I get a signal that never seems to go past a peak voltage of 100mV. Analyzing the signal after each stage reveals more or less the same signal, with significantly more noise and slightly lower peak voltages.

Could I possibly rectify this issue by raising the gain of the first stage of this circuit? Does anyone notice any glaring issues with this circuit, or my attempt at it on the breadboard? When I hook up the phone's output directly to the speaker, it has no issue playing the sound (despite not being all that loud). I understand the impedance of the circuit could very well be lowering the power of the signal to a value that makes it impossible to hear. Or perhaps my only issue is that I need match my JFETs, since I know low quality control means even the same JFET can have very different values.

Phaser Schematic

Breadboarded Phaser

Comparison of two numbers of different length

  • Arinjoy Pramanik
  • Physics
  • Replies: 0
I want to design a circuit at block level using IC 7485 to compare one 6 bit number with another 5 bit number.
My approach is that I will put the most significant bits in the 4 inputs of the 7485 comparator considering both to be of same length by placing a 0 in front of the 5 bit number. I will then design a 2 bit comparator for the least 2 significant bits of the two numbers and use their output as my input to the IC. Is this approach correct?

Which is the best digital marketing institute in Chandigarh or Mohali?

Chandigarh Institute of Internet Marketing (CIIM) is the institute from which I have done the course of advance digital marketing. The thing is that I came to know about this institute from my friend she had also done the same course and applied for further course as well. After learning the course I also got placement letter for a well recognised company. The teachers are also very supportive and cooperative. If you are looking for a budget friendly course do visit and thank me later.

SharePoint Online List Lookup within the Same List

  1. I have only One SharePoint Online List.
  2. I want to use a Lookup using "ID" and "Prior ID" columns, in order get a Date added to the "Prior Date" Field.
  3. I want it to look like the table below.
  4. But currently, nothing is returned in the Prior Date field, it is empty.

enter image description here
Top