Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit b48b72f

Browse files
committed
misspleing table in model, eslint
1 parent caf3479 commit b48b72f

5 files changed

Lines changed: 18 additions & 22 deletions

File tree

app/config/rct-data/healthcheckQueries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const checkStaticData = {
2727
VALUES (DEFAULT, '${name}', '${d.full_name}', ${d.A}, ${d.Z});`),
2828
},
2929
flags: {
30-
description: 'Flags types dict insert',
31-
query: flags.map((f) => `INSERT INTO flags_types_dictionary("id", "name", "method", "bad", "obsolate")
30+
description: 'Flag types dict insert',
31+
query: flags.map((f) => `INSERT INTO flag_types_dictionary("id", "name", "method", "bad", "obsolate")
3232
VALUES (${f.id}, '${f.name}', '${f.method}', ${f.bad}::bool, ${f.obsolete}::bool);`),
3333
},
3434
};

app/lib/alimonitor-services/SyncManager.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ class SyncManager {
8989
await this.databaseService
9090
.pgExec(config.rctData.healthcheckQueries.meta.setLastSyncInProgress.query);
9191
}
92-
93-
async clearSyncAllTask() {
94-
clearInterval(this.syncAllTask);
95-
}
9692
}
9793

9894
module.exports = new SyncManager();

database/design.dbm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ CAUTION: Do not modify this file unless you know what you are doing.
182182
<role name="postgres"/>
183183
</sequence>
184184

185-
<table name="flags_types_dictionary" layers="0" collapse-mode="2" max-obj-count="6" z-value="0">
185+
<table name="flag_types_dictionary" layers="0" collapse-mode="2" max-obj-count="6" z-value="0">
186186
<schema name="public"/>
187187
<role name="postgres"/>
188188
<tag name="dictionaries_layer"/>
@@ -202,10 +202,10 @@ CAUTION: Do not modify this file unless you know what you are doing.
202202
<column name="obsolate" not-null="true">
203203
<type name="bool" length="0"/>
204204
</column>
205-
<constraint name="flags_types_dictionary_pkey" type="pk-constr" table="public.flags_types_dictionary">
205+
<constraint name="flags_types_dictionary_pkey" type="pk-constr" table="public.flag_types_dictionary">
206206
<columns names="id" ref-type="src-columns"/>
207207
</constraint>
208-
<constraint name="ftp_name_unique" type="uq-constr" table="public.flags_types_dictionary">
208+
<constraint name="ftp_name_unique" type="uq-constr" table="public.flag_types_dictionary">
209209
<columns names="name" ref-type="src-columns"/>
210210
</constraint>
211211
</table>
@@ -585,7 +585,7 @@ CAUTION: Do not modify this file unless you know what you are doing.
585585
</constraint>
586586

587587
<constraint name="flag_type_fk" type="fk-constr" comparison-type="MATCH SIMPLE"
588-
upd-action="CASCADE" del-action="CASCADE" ref-table="public.flags_types_dictionary" table="public.quality_control_flags">
588+
upd-action="CASCADE" del-action="CASCADE" ref-table="public.flag_types_dictionary" table="public.quality_control_flags">
589589
<columns names="flag_type_id" ref-type="src-columns"/>
590590
<columns names="id" ref-type="dst-columns"/>
591591
</constraint>
@@ -690,7 +690,7 @@ CAUTION: Do not modify this file unless you know what you are doing.
690690

691691
<relationship name="rel_quality_control_flags_flags_types_dictionary" type="relfk" layers="0"
692692
src-table="public.quality_control_flags"
693-
dst-table="public.flags_types_dictionary" reference-fk="flag_type_fk"
693+
dst-table="public.flag_types_dictionary" reference-fk="flag_type_fk"
694694
src-required="false" dst-required="true"/>
695695

696696
<relationship name="rel_runs_detectors_runs" type="relfk" layers="0"
@@ -808,12 +808,12 @@ CAUTION: Do not modify this file unless you know what you are doing.
808808
<privileges select="true" delete="true" insert="true" update="true" truncate="true" references="true" trigger="true"/>
809809
</permission>
810810
<permission>
811-
<object name="public.flags_types_dictionary" type="table"/>
811+
<object name="public.flag_types_dictionary" type="table"/>
812812
<roles names="postgres"/>
813813
<privileges select="true" delete="true" insert="true" update="true" truncate="true" references="true" trigger="true"/>
814814
</permission>
815815
<permission>
816-
<object name="public.flags_types_dictionary" type="table"/>
816+
<object name="public.flag_types_dictionary" type="table"/>
817817
<roles names="&quot;rct-user&quot;"/>
818818
<privileges select="true" delete="true" insert="true" update="true" truncate="true" references="true" trigger="true"/>
819819
</permission>

database/exported/create-tables.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ CREATE SEQUENCE public.flags_types_dictionary_id_seq
156156
ALTER SEQUENCE public.flags_types_dictionary_id_seq OWNER TO postgres;
157157
-- ddl-end --
158158

159-
-- object: public.flags_types_dictionary | type: TABLE --
160-
-- DROP TABLE IF EXISTS public.flags_types_dictionary CASCADE;
161-
CREATE TABLE public.flags_types_dictionary (
159+
-- object: public.flag_types_dictionary | type: TABLE --
160+
-- DROP TABLE IF EXISTS public.flag_types_dictionary CASCADE;
161+
CREATE TABLE public.flag_types_dictionary (
162162
id integer NOT NULL,
163163
name varchar NOT NULL,
164164
method varchar NOT NULL,
@@ -168,7 +168,7 @@ CREATE TABLE public.flags_types_dictionary (
168168
CONSTRAINT ftp_name_unique UNIQUE (name)
169169
);
170170
-- ddl-end --
171-
ALTER TABLE public.flags_types_dictionary OWNER TO postgres;
171+
ALTER TABLE public.flag_types_dictionary OWNER TO postgres;
172172
-- ddl-end --
173173

174174
-- object: public.pass_types_id_seq | type: SEQUENCE --
@@ -475,7 +475,7 @@ ON DELETE NO ACTION ON UPDATE NO ACTION;
475475
-- object: flag_type_fk | type: CONSTRAINT --
476476
-- ALTER TABLE public.quality_control_flags DROP CONSTRAINT IF EXISTS flag_type_fk CASCADE;
477477
ALTER TABLE public.quality_control_flags ADD CONSTRAINT flag_type_fk FOREIGN KEY (flag_type_id)
478-
REFERENCES public.flags_types_dictionary (id) MATCH SIMPLE
478+
REFERENCES public.flag_types_dictionary (id) MATCH SIMPLE
479479
ON DELETE CASCADE ON UPDATE CASCADE;
480480
-- ddl-end --
481481

@@ -630,15 +630,15 @@ GRANT SELECT,INSERT,UPDATE,DELETE,TRUNCATE,REFERENCES,TRIGGER
630630
TO "rct-user";
631631
-- ddl-end --
632632

633-
-- object: "grant_rawdDxt_83541d8bbc" | type: PERMISSION --
633+
-- object: "grant_rawdDxt_440311e26a" | type: PERMISSION --
634634
GRANT SELECT,INSERT,UPDATE,DELETE,TRUNCATE,REFERENCES,TRIGGER
635-
ON TABLE public.flags_types_dictionary
635+
ON TABLE public.flag_types_dictionary
636636
TO postgres;
637637
-- ddl-end --
638638

639-
-- object: "grant_rawdDxt_64d10fc454" | type: PERMISSION --
639+
-- object: "grant_rawdDxt_3879d7d743" | type: PERMISSION --
640640
GRANT SELECT,INSERT,UPDATE,DELETE,TRUNCATE,REFERENCES,TRIGGER
641-
ON TABLE public.flags_types_dictionary
641+
ON TABLE public.flag_types_dictionary
642642
TO "rct-user";
643643
-- ddl-end --
644644

database/exported/design.png

-188 Bytes
Loading

0 commit comments

Comments
 (0)