mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
Start fixing places that use the data store.
This commit is contained in:
parent
78b501eba6
commit
661c711765
6 changed files with 33 additions and 39 deletions
|
@ -13,6 +13,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from twisted.internet import defer
|
||||
|
||||
from ._base import SQLBaseStore, Table
|
||||
from synapse.api.events.room import FeedbackEvent
|
||||
|
||||
|
@ -31,7 +33,7 @@ class FeedbackStore(SQLBaseStore):
|
|||
"sender": event.user_id,
|
||||
})
|
||||
|
||||
@defer.inlineCallback
|
||||
@defer.inlineCallbacks
|
||||
def get_feedback_for_event(self, event_id):
|
||||
sql = (
|
||||
"SELECT events.* FROM events INNER JOIN feedback "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue